From 20ebfefad10c706c8b18d58d502e5d1676f10734 Mon Sep 17 00:00:00 2001 From: Elias Rammos Date: Sat, 18 May 2019 02:27:52 +0300 Subject: minor change in scriptEdtiorPlugin ref #28943 --- editor/plugins/script_editor_plugin.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'editor') diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 92579e5cef..828abef9a9 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -3305,9 +3305,7 @@ void ScriptEditorPlugin::edit(Object *p_object) { } else { script_editor->edit(p_script); } - } - - if (Object::cast_to(p_object)) { + } else if (Object::cast_to(p_object)) { script_editor->edit(Object::cast_to(p_object)); } } -- cgit v1.2.3