From e64c66c51eca6d1e341b0b249af67b936b2f440c Mon Sep 17 00:00:00 2001 From: kobewi Date: Sat, 8 Nov 2025 17:04:10 +0100 Subject: [PATCH] Prevent emitting signals when previewing resource --- editor/gui/editor_quick_open_dialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/gui/editor_quick_open_dialog.cpp b/editor/gui/editor_quick_open_dialog.cpp index 32346b0f9ba1..18f7d37c8a85 100644 --- a/editor/gui/editor_quick_open_dialog.cpp +++ b/editor/gui/editor_quick_open_dialog.cpp @@ -235,11 +235,13 @@ void EditorQuickOpenDialog::preview_property() { // MultiNodeEdit has adding to the undo/redo stack baked into its set function. // As such, we have to specifically call a version of its setter that doesn't // create undo/redo actions. + property_object->set_block_signals(true); if (Object::cast_to(property_object)) { Object::cast_to(property_object)->_set_impl(property_path, loaded_resource, "", false); } else { property_object->set(property_path, loaded_resource); } + property_object->set_block_signals(false); } void EditorQuickOpenDialog::update_property() {