Skip to content

Commit

Permalink
Merge pull request #23535 from fire/empty-script-interface-tscn-23495
Browse files Browse the repository at this point in the history
Fix empty script interface crash on tscn load. #23495
  • Loading branch information
akien-mga authored Nov 6, 2018
2 parents 4771b03 + ef78181 commit 8f39b36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/visual_script/visual_script_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 8f39b36

Please sign in to comment.