Browse Source

Merge pull request #77867 from Sauermann/revert-move-child-update

Don't update mouse cursor state on child order changed
Rémi Verschelde 2 years ago
parent
commit
85c908654c
1 changed files with 0 additions and 8 deletions
  1. 0 8
      scene/main/node.cpp

+ 0 - 8
scene/main/node.cpp

@@ -216,14 +216,6 @@ void Node::_notification(int p_notification) {
 				memdelete(child);
 			}
 		} 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;
 	}
 }