Fix compile errors.

This commit is contained in:
Relintai 2023-10-02 17:11:37 +02:00
parent 9022a74db3
commit 88e7cc8776

View File

@ -138,10 +138,10 @@ void TileMap::_notification(int p_what) {
case NOTIFICATION_RESET_PHYSICS_INTERPOLATION: {
if (is_visible_in_tree() && is_physics_interpolated_and_enabled()) {
for (Map<PosKey, Quadrant>::Element *E = quadrant_map.front(); E; E = E->next()) {
for (RBMap<PosKey, Quadrant>::Element *E = quadrant_map.front(); E; E = E->next()) {
Quadrant &q = E->get();
for (List<RID>::Element *F = q.canvas_items.front(); F; F = F->next()) {
VisualServer::get_singleton()->canvas_item_reset_physics_interpolation(F->get());
RenderingServer::get_singleton()->canvas_item_reset_physics_interpolation(F->get());
}
}
}
@ -815,7 +815,7 @@ void TileMap::update_dirty_quadrants() {
// Reset physics interpolation for any recreated canvas items.
if (is_physics_interpolated_and_enabled() && is_visible_in_tree()) {
for (List<RID>::Element *F = q.canvas_items.front(); F; F = F->next()) {
VisualServer::get_singleton()->canvas_item_reset_physics_interpolation(F->get());
RenderingServer::get_singleton()->canvas_item_reset_physics_interpolation(F->get());
}
}