mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-09 01:20:04 +01:00
Small tweaks.
This commit is contained in:
parent
db7f5c8bec
commit
5b18493589
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user