From 54399378993f768617e0cae469d647606cc28042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 15 Feb 2016 23:22:28 +0100 Subject: [PATCH] Bind method is_cell_transposed --- doc/base/classes.xml | 11 +++++++++++ scene/2d/tile_map.cpp | 1 + 2 files changed, 12 insertions(+) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index fce3aea0bec..e2e5cd2beb0 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. + + + + + + + + + Return whether the referenced cell is transposed, i.e. the X and Y axes are swapped (mirroring with regard to the (1,1) vector). + + Clear all cells. diff --git a/scene/2d/tile_map.cpp b/scene/2d/tile_map.cpp index 5c298e96f6c..2014c9730ff 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);