From 6aee6c1fdd69da141410c0d9101f35c4d40bc512 Mon Sep 17 00:00:00 2001 From: Robert Yevdokimov Date: Fri, 12 Jan 2024 19:49:20 -0500 Subject: [PATCH] Clear drag preview material on `NOTIFICATION_DRAG_END` --- editor/plugins/node_3d_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index e4d24832bff..08867c73f89 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -3016,6 +3016,7 @@ void Node3DEditorViewport::_notification(int p_what) { case NOTIFICATION_DRAG_END: { // Clear preview material when dropped outside applicable object. if (spatial_editor->get_preview_material().is_valid() && !is_drag_successful()) { + _reset_preview_material(); _remove_preview_material(); } } break;