Browse Source

minor change in scriptEdtiorPlugin ref #28943

Elias Rammos 6 years ago
parent
commit
20ebfefad1
1 changed files with 1 additions and 3 deletions
  1. 1 3
      editor/plugins/script_editor_plugin.cpp

+ 1 - 3
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<TextFile>(p_object)) {
+	} else if (Object::cast_to<TextFile>(p_object)) {
 		script_editor->edit(Object::cast_to<TextFile>(p_object));
 	}
 }