diff options
author | Pieter-Jan Briers <pieterjan.briers@gmail.com> | 2018-07-22 15:26:14 +0200 |
---|---|---|
committer | Pieter-Jan Briers <pieterjan.briers@gmail.com> | 2018-07-22 15:26:14 +0200 |
commit | b2c797c584fea1933b9c9d1c237a09cad6e088ed (patch) | |
tree | da0b247dcf821e2837abf8141166d5a289eff690 /doc | |
parent | 525384d8cc45a0976e0afb862c8a54244bbd72e7 (diff) |
Defer TileMap::update_dirty_quadrants once again.
This fixes #20323.
#11077 is now technically re-broken,
but you can now call update_dirty_quadrants as workaround.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/TileMap.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/classes/TileMap.xml b/doc/classes/TileMap.xml index 656063771d..3486b721ca 100644 --- a/doc/classes/TileMap.xml +++ b/doc/classes/TileMap.xml @@ -153,6 +153,8 @@ Sets the tile index for the cell given by a Vector2. An index of [code]-1[/code] clears the cell. Optionally, the tile can also be flipped, transposed, or given autotile coordinates. + Note that data such as navigation polygons and collision shapes are not immediately updated for performance reasons. + If you need these to be immediately updated, you can call [method update_dirty_quadrants]. </description> </method> <method name="set_cellv"> @@ -172,6 +174,8 @@ Sets the tile index for the given cell. An index of [code]-1[/code] clears the cell. Optionally, the tile can also be flipped or transposed. + Note that data such as navigation polygons and collision shapes are not immediately updated for performance reasons. + If you need these to be immediately updated, you can call [method update_dirty_quadrants]. </description> </method> <method name="set_collision_layer_bit"> @@ -217,6 +221,13 @@ Calling with invalid (or missing) parameters applies autotiling rules for the entire tilemap. </description> </method> + <method name="update_dirty_quadrants"> + <return type="void"> + </return> + <description> + Updates the tile map's quadrants, allowing things such as navigation and collision shapes to be immediately used if modified. + </description> + </method> <method name="world_to_map" qualifiers="const"> <return type="Vector2"> </return> |