summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-02-09 23:53:29 +0100
committerkobewi <kobewi4e@gmail.com>2022-02-10 15:06:13 +0100
commit283ec9e6406c1fec206bf26759af4316106f674b (patch)
tree6bc2f95e69b872b5221cf34b96bc461f8ea66fe5
parent6ad0ca8fcd08a5414788fdefc428d92b3f4a67a9 (diff)
Fix texture file dropping in 2D editor
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp2
-rw-r--r--editor/plugins/node_3d_editor_plugin.cpp2
2 files changed, 0 insertions, 4 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp
index aa8ad55ff3..48c5c0ebc4 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 e35af6dd64..959c76e22a 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;