diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-11-06 20:29:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-06 20:29:35 +0100 |
commit | 8f39b36a1a69e705d034b355b9a8eb990421bb75 (patch) | |
tree | 8f487ffe003f7971d92277b1d4c14ae26343cf61 /modules | |
parent | 4771b032c4f995383fda02b6bf3ecd2829d85bb4 (diff) | |
parent | ef781810730e1f22c194baa9cff2c76874f2f86e (diff) |
Merge pull request #23535 from fire/empty-script-interface-tscn-23495
Fix empty script interface crash on tscn load. #23495
Diffstat (limited to 'modules')
-rw-r--r-- | modules/visual_script/visual_script_editor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp index a80a015ed3..03f3e67e5d 100644 --- a/modules/visual_script/visual_script_editor.cpp +++ b/modules/visual_script/visual_script_editor.cpp @@ -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(); } |