minor change in scriptEdtiorPlugin ref #28943

This commit is contained in:
Elias Rammos 2019-05-18 02:27:52 +03:00
parent ee5ba3e097
commit 20ebfefad1

View file

@ -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));
}
}