Ensure all properties are refreshed when setting a script, fixes #24845
This commit is contained in:
parent
3ea04c1366
commit
61b41d6001
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
emit_signal(CoreStringNames::get_singleton()->script_changed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue