Clear drag preview material on NOTIFICATION_DRAG_END
This commit is contained in:
parent
26b1fd0d84
commit
6aee6c1fdd
1 changed files with 1 additions and 0 deletions
|
@ -3016,6 +3016,7 @@ void Node3DEditorViewport::_notification(int p_what) {
|
||||||
case NOTIFICATION_DRAG_END: {
|
case NOTIFICATION_DRAG_END: {
|
||||||
// Clear preview material when dropped outside applicable object.
|
// Clear preview material when dropped outside applicable object.
|
||||||
if (spatial_editor->get_preview_material().is_valid() && !is_drag_successful()) {
|
if (spatial_editor->get_preview_material().is_valid() && !is_drag_successful()) {
|
||||||
|
_reset_preview_material();
|
||||||
_remove_preview_material();
|
_remove_preview_material();
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
Loading…
Reference in a new issue