Ver Fonte

Merge pull request #28972 from erammos/28943_script_editor_plugin

 minor change in scriptEdtiorPlugin ref #28943
Rémi Verschelde há 6 anos atrás
pai
commit
fead547ba5
1 ficheiros alterados com 1 adições e 3 exclusões
  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));
 	}
 }