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:
Rémi Verschelde 2018-11-06 20:29:35 +01:00 committed by GitHub
commit 8f39b36a1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -765,6 +765,7 @@ void VisualScriptEditor::_update_graph(int p_only_id) {
}
void VisualScriptEditor::_update_members() {
ERR_FAIL_COND(!script.is_valid());
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_graph();
}