diff --git a/src/script/nodes/scene/scene_node.cpp b/src/script/nodes/scene/scene_node.cpp index 7e28d454..c4049977 100644 --- a/src/script/nodes/scene/scene_node.cpp +++ b/src/script/nodes/scene/scene_node.cpp @@ -19,6 +19,7 @@ #include "common/property_utils.h" #include "common/scene_utils.h" #include "common/string_utils.h" +#include "script/script_server.h" #include #include @@ -81,6 +82,19 @@ bool OScriptNodeSceneNode::_set(const StringName& p_name, const Variant& p_value if (p_name.match("node_path")) { _node_path = p_value; + + if (_initialized) + { + if (Node* node = _get_referenced_node()) + { + Ref