From 1c619e50cea2d29ddb555c06e968328b8eb3366e Mon Sep 17 00:00:00 2001 From: Robert Yevdokimov <105675984+ryevdokimov@users.noreply.github.com> Date: Sat, 21 Jun 2025 16:17:34 +0400 Subject: [PATCH] Disable node processing completely to avoid issues with tool scripts --- scripts/scene_library.gd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/scene_library.gd b/scripts/scene_library.gd index 5b052fe..b690da0 100644 --- a/scripts/scene_library.gd +++ b/scripts/scene_library.gd @@ -1036,6 +1036,7 @@ func _create_thumb(item: Dictionary[StringName, Variant], callback: Callable) -> return callback.call() var instance: Node = packed_scene.instantiate() + _disable_node_processing(instance) _viewport.call_deferred(&"add_child", instance) await instance.ready @@ -1068,6 +1069,12 @@ func _create_thumb(item: Dictionary[StringName, Variant], callback: Callable) -> callback.call() +func _disable_node_processing(node: Node) -> void: + node.set_process_mode(Node.PROCESS_MODE_DISABLED) + + for child in node.get_children(): + _disable_node_processing(child) + func _thread_process() -> void: var semaphore := Semaphore.new()