You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Merge pull request #23535 from fire/empty-script-interface-tscn-23495
Fix empty script interface crash on tscn load. #23495
This commit is contained in:
@@ -765,6 +765,7 @@ void VisualScriptEditor::_update_graph(int p_only_id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void VisualScriptEditor::_update_members() {
|
void VisualScriptEditor::_update_members() {
|
||||||
|
ERR_FAIL_COND(!script.is_valid());
|
||||||
|
|
||||||
updating_members = true;
|
updating_members = true;
|
||||||
|
|
||||||
@@ -3061,7 +3062,7 @@ void VisualScriptEditor::_notification(int p_what) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_visible_in_tree()) {
|
if (is_visible_in_tree() && script.is_valid()) {
|
||||||
_update_members();
|
_update_members();
|
||||||
_update_graph();
|
_update_graph();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user