mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-13 03:10:09 +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();
|
Physics2DServer *ps = Physics2DServer::get_singleton();
|
||||||
|
|
||||||
switch (p_what) {
|
switch (p_what) {
|
||||||
|
case NOTIFICATION_LOCAL_TRANSFORM_CHANGED:
|
||||||
case NOTIFICATION_TRANSFORM_CHANGED:
|
case NOTIFICATION_TRANSFORM_CHANGED:
|
||||||
// Move the collisison shapes along with the LayeredTileMap.
|
// Move the collisison shapes along with the LayeredTileMap.
|
||||||
if (is_inside_tree() && tile_set.is_valid()) {
|
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() {
|
void LayeredTileMapLayer::_update_notify_local_transform() {
|
||||||
bool notify = is_using_kinematic_bodies() || is_sort_enabled();
|
bool notify = is_using_kinematic_bodies() || is_sort_enabled();
|
||||||
if (!notify) {
|
|
||||||
if (is_sort_enabled()) {
|
|
||||||
notify = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
set_notify_local_transform(notify);
|
set_notify_local_transform(notify);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user