You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Don't update mouse cursor state on child order changed
Partially Revert "Create a virtual mouse move event after moving child nodes"
This reverts parts of commit ce10ca6979.
The problem was that the the mouse-move event interacted in unexpected ways.
This commit is contained in:
@@ -216,14 +216,6 @@ void Node::_notification(int p_notification) {
|
|||||||
memdelete(child);
|
memdelete(child);
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case NOTIFICATION_CHILD_ORDER_CHANGED: {
|
|
||||||
// The order, in which canvas items are drawn gets rearranged.
|
|
||||||
// This makes it necessary to update mouse cursor and send according mouse_enter/mouse_exit signals for Control nodes.
|
|
||||||
if (get_viewport()) {
|
|
||||||
get_viewport()->update_mouse_cursor_state();
|
|
||||||
}
|
|
||||||
} break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user