Small tweaks.

This commit is contained in:
Relintai 2024-03-17 14:06:44 +01:00
parent db7f5c8bec
commit 5b18493589

View File

@ -754,6 +754,7 @@ void LayeredTileMapLayer::_physics_notification(int p_what) {
Physics2DServer *ps = Physics2DServer::get_singleton();
switch (p_what) {
case NOTIFICATION_LOCAL_TRANSFORM_CHANGED:
case NOTIFICATION_TRANSFORM_CHANGED:
// Move the collisison shapes along with the LayeredTileMap.
if (is_inside_tree() && tile_set.is_valid()) {
@ -789,6 +790,7 @@ void LayeredTileMapLayer::_physics_notification(int p_what) {
}
}
}
break;
}
}
@ -1694,11 +1696,6 @@ void LayeredTileMapLayer::_renamed() {
void LayeredTileMapLayer::_update_notify_local_transform() {
bool notify = is_using_kinematic_bodies() || is_sort_enabled();
if (!notify) {
if (is_sort_enabled()) {
notify = true;
}
}
set_notify_local_transform(notify);
}