mirror of
https://github.com/godotengine/godot.git
synced 2024-12-09 10:09:20 +08:00
Merge pull request #70118 from clayjohn/tilemap-layers
Use large offset for tilemap layer level canvas items
This commit is contained in:
commit
c023d41036
@ -1092,7 +1092,7 @@ void TileMap::_rendering_update_layer(int p_layer) {
|
||||
/*Transform2D xform;
|
||||
xform.set_origin(Vector2(0, p_layer));
|
||||
rs->canvas_item_set_transform(ci, xform);*/
|
||||
rs->canvas_item_set_draw_index(ci, p_layer);
|
||||
rs->canvas_item_set_draw_index(ci, p_layer - (int64_t)0x80000000);
|
||||
|
||||
layers[p_layer].canvas_item = ci;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user