From 4c3096350f4b2a64bf423748d42ee82db668a0fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 4 Jan 2022 10:19:10 +0100 Subject: [PATCH] Fix shadowing warning after #52611 --- editor/editor_node.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 715f62b3df2..ed7779bf7d2 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(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);