You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Clear drag preview nodes on NOTIFICATION_DRAG_END
This commit is contained in:
@@ -3017,6 +3017,8 @@ void Node3DEditorViewport::_notification(int p_what) {
|
||||
// Clear preview material when dropped outside applicable object.
|
||||
if (spatial_editor->get_preview_material().is_valid() && !is_drag_successful()) {
|
||||
_remove_preview_material();
|
||||
} else {
|
||||
_remove_preview_node();
|
||||
}
|
||||
} break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user