浏览代码

Ensure all properties are refreshed when setting a script, fixes #24845

Juan Linietsky 6 年之前
父节点
当前提交
61b41d6001
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/object.cpp

+ 1 - 1
core/object.cpp

@@ -1014,7 +1014,7 @@ void Object::set_script(const RefPtr &p_script) {
 		}
 	}
 
-	_change_notify("script");
+	_change_notify(); //scripts may add variables, so refresh is desired
 	emit_signal(CoreStringNames::get_singleton()->script_changed);
 }