improved performance of editor inspector

This commit is contained in:
Dmitry Stepanov
2026-08-29 19:40:51 +03:00
parent 7d176a689e
commit fe33645fd3
+1 -1
View File
@@ -452,6 +452,7 @@ impl EditorPlugin for InspectorPlugin {
fn on_ui_message(&mut self, message: &mut UiMessage, editor: &mut Editor) {
let entry = editor.scenes.current_scene_entry_mut();
if let Some(msg) = message.data::<InspectorMessage>() {
if (message.destination() == self.inspector
|| editor
.engine
@@ -460,7 +461,6 @@ impl EditorPlugin for InspectorPlugin {
.is_node_child_of(message.destination(), self.inspector))
&& message.direction() == MessageDirection::FromWidget
{
if let Some(msg) = message.data::<InspectorMessage>() {
match msg {
InspectorMessage::CopyValue { path } => {
entry.selection.first_selected_entity(