Skip to content

Commit

Permalink
Clear drag preview material on NOTIFICATION_DRAG_END
Browse files Browse the repository at this point in the history
  • Loading branch information
ryevdokimov committed Feb 3, 2024
1 parent 26b1fd0 commit 6aee6c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/plugins/node_3d_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6aee6c1

Please sign in to comment.