You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Merge pull request #87135 from ryevdokimov/do-not-apply-material-on-ui-cancel
Clear drag preview material on `NOTIFICATION_DRAG_END`
This commit is contained in:
@@ -3119,6 +3119,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();
|
||||||
} else {
|
} else {
|
||||||
_remove_preview_node();
|
_remove_preview_node();
|
||||||
|
|||||||
Reference in New Issue
Block a user