diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-01-04 10:19:10 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-01-04 10:19:31 +0100 |
commit | 4c3096350f4b2a64bf423748d42ee82db668a0fe (patch) | |
tree | 858520aa368b1c2125c990f70ad22156c519505a | |
parent | 23342ac23cec4ff366d1bc7bcf70d1a30774f2c4 (diff) |
Fix shadowing warning after #52611
-rw-r--r-- | editor/editor_node.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 715f62b3df..ed7779bf7d 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -2272,7 +2272,6 @@ void EditorNode::_edit_current(bool p_skip_foreign) { if (main_plugin) { // special case if use of external editor is true - Resource *res = Object::cast_to<Resource>(current_obj); if (main_plugin->get_name() == "Script" && current_obj->get_class_name() != StringName("VisualScript") && res && !res->is_built_in() && (bool(EditorSettings::get_singleton()->get("text_editor/external/use_external_editor")) || overrides_external_editor(current_obj))) { if (!changing_scene) { main_plugin->edit(current_obj); |