mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Use switch consistently in _notification (scene folder)
This commit is contained in:
@@ -115,8 +115,8 @@ void RemoteTransform2D::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
_update_cache();
|
||||
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_TRANSFORM_CHANGED: {
|
||||
if (!is_inside_tree()) {
|
||||
break;
|
||||
@@ -125,7 +125,6 @@ void RemoteTransform2D::_notification(int p_what) {
|
||||
if (cache.is_valid()) {
|
||||
_update_remote();
|
||||
}
|
||||
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user