diff options
-rw-r--r-- | doc/base/classes.xml | 11 | ||||
-rw-r--r-- | scene/2d/tile_map.cpp | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml index fce3aea0be..e2e5cd2beb 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -36394,6 +36394,17 @@ This method controls whether the position between two cached points is interpola Return whether the referenced cell is flipped over the Y axis. </description> </method> + <method name="is_cell_transposed" qualifiers="const"> + <return type="bool"> + </return> + <argument index="0" name="x" type="int"> + </argument> + <argument index="1" name="y" type="int"> + </argument> + <description> + Return whether the referenced cell is transposed, i.e. the X and Y axes are swapped (mirroring with regard to the (1,1) vector). + </description> + </method> <method name="clear"> <description> Clear all cells. diff --git a/scene/2d/tile_map.cpp b/scene/2d/tile_map.cpp index 5c298e96f6..2014c9730f 100644 --- a/scene/2d/tile_map.cpp +++ b/scene/2d/tile_map.cpp @@ -1205,6 +1205,7 @@ void TileMap::_bind_methods() { ObjectTypeDB::bind_method(_MD("get_cellv","pos"),&TileMap::get_cellv); ObjectTypeDB::bind_method(_MD("is_cell_x_flipped","x","y"),&TileMap::is_cell_x_flipped); ObjectTypeDB::bind_method(_MD("is_cell_y_flipped","x","y"),&TileMap::is_cell_y_flipped); + ObjectTypeDB::bind_method(_MD("is_cell_transposed","x","y"),&TileMap::is_cell_transposed); ObjectTypeDB::bind_method(_MD("clear"),&TileMap::clear); |