From 283ec9e6406c1fec206bf26759af4316106f674b Mon Sep 17 00:00:00 2001 From: kobewi Date: Wed, 9 Feb 2022 23:53:29 +0100 Subject: [PATCH] Fix texture file dropping in 2D editor --- editor/plugins/canvas_item_editor_plugin.cpp | 2 -- editor/plugins/node_3d_editor_plugin.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index aa8ad55ff3b..48c5c0ebc41 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -5955,8 +5955,6 @@ bool CanvasItemEditorViewport::can_drop_data(const Point2 &p_point, const Varian continue; } memdelete(instantiated_scene); - } else { - continue; } can_instantiate = true; break; diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index e35af6dd646..959c76e22ae 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -3959,8 +3959,6 @@ bool Node3DEditorViewport::can_drop_data_fw(const Point2 &p_point, const Variant continue; } memdelete(instantiated_scene); - } else { - continue; } can_instantiate = true; break;