Browse Source

Merge pull request #64496 from KoBeWi/proxXxies

Use false as default for use_proxies argument
Yuri Sizov 3 years ago
parent
commit
a677fdec2a
2 changed files with 6 additions and 6 deletions
  1. 3 3
      doc/classes/TileMap.xml
  2. 3 3
      scene/2d/tile_map.cpp

+ 3 - 3
doc/classes/TileMap.xml

@@ -84,7 +84,7 @@
 			<return type="int" />
 			<return type="int" />
 			<param index="0" name="layer" type="int" />
 			<param index="0" name="layer" type="int" />
 			<param index="1" name="coords" type="Vector2i" />
 			<param index="1" name="coords" type="Vector2i" />
-			<param index="2" name="use_proxies" type="bool" />
+			<param index="2" name="use_proxies" type="bool" default="false" />
 			<description>
 			<description>
 				Returns the tile alternative ID of the cell on layer [param layer] at [param coords]. If [param use_proxies] is [code]false[/code], ignores the [TileSet]'s tile proxies, returning the raw alternative identifier. See [method TileSet.map_tile_proxy].
 				Returns the tile alternative ID of the cell on layer [param layer] at [param coords]. If [param use_proxies] is [code]false[/code], ignores the [TileSet]'s tile proxies, returning the raw alternative identifier. See [method TileSet.map_tile_proxy].
 			</description>
 			</description>
@@ -93,7 +93,7 @@
 			<return type="Vector2i" />
 			<return type="Vector2i" />
 			<param index="0" name="layer" type="int" />
 			<param index="0" name="layer" type="int" />
 			<param index="1" name="coords" type="Vector2i" />
 			<param index="1" name="coords" type="Vector2i" />
-			<param index="2" name="use_proxies" type="bool" />
+			<param index="2" name="use_proxies" type="bool" default="false" />
 			<description>
 			<description>
 				Returns the tile atlas coordinates ID of the cell on layer [param layer] at coordinates [param coords]. If [param use_proxies] is [code]false[/code], ignores the [TileSet]'s tile proxies, returning the raw alternative identifier. See [method TileSet.map_tile_proxy].
 				Returns the tile atlas coordinates ID of the cell on layer [param layer] at coordinates [param coords]. If [param use_proxies] is [code]false[/code], ignores the [TileSet]'s tile proxies, returning the raw alternative identifier. See [method TileSet.map_tile_proxy].
 			</description>
 			</description>
@@ -102,7 +102,7 @@
 			<return type="int" />
 			<return type="int" />
 			<param index="0" name="layer" type="int" />
 			<param index="0" name="layer" type="int" />
 			<param index="1" name="coords" type="Vector2i" />
 			<param index="1" name="coords" type="Vector2i" />
-			<param index="2" name="use_proxies" type="bool" />
+			<param index="2" name="use_proxies" type="bool" default="false" />
 			<description>
 			<description>
 				Returns the tile source ID of the cell on layer [param layer] at coordinates [param coords]. If [param use_proxies] is [code]false[/code], ignores the [TileSet]'s tile proxies, returning the raw alternative identifier. See [method TileSet.map_tile_proxy].
 				Returns the tile source ID of the cell on layer [param layer] at coordinates [param coords]. If [param use_proxies] is [code]false[/code], ignores the [TileSet]'s tile proxies, returning the raw alternative identifier. See [method TileSet.map_tile_proxy].
 			</description>
 			</description>

+ 3 - 3
scene/2d/tile_map.cpp

@@ -3858,9 +3858,9 @@ void TileMap::_bind_methods() {
 
 
 	ClassDB::bind_method(D_METHOD("set_cell", "layer", "coords", "source_id", "atlas_coords", "alternative_tile"), &TileMap::set_cell, DEFVAL(TileSet::INVALID_SOURCE), DEFVAL(TileSetSource::INVALID_ATLAS_COORDS), DEFVAL(0));
 	ClassDB::bind_method(D_METHOD("set_cell", "layer", "coords", "source_id", "atlas_coords", "alternative_tile"), &TileMap::set_cell, DEFVAL(TileSet::INVALID_SOURCE), DEFVAL(TileSetSource::INVALID_ATLAS_COORDS), DEFVAL(0));
 	ClassDB::bind_method(D_METHOD("erase_cell", "layer", "coords"), &TileMap::erase_cell);
 	ClassDB::bind_method(D_METHOD("erase_cell", "layer", "coords"), &TileMap::erase_cell);
-	ClassDB::bind_method(D_METHOD("get_cell_source_id", "layer", "coords", "use_proxies"), &TileMap::get_cell_source_id);
-	ClassDB::bind_method(D_METHOD("get_cell_atlas_coords", "layer", "coords", "use_proxies"), &TileMap::get_cell_atlas_coords);
-	ClassDB::bind_method(D_METHOD("get_cell_alternative_tile", "layer", "coords", "use_proxies"), &TileMap::get_cell_alternative_tile);
+	ClassDB::bind_method(D_METHOD("get_cell_source_id", "layer", "coords", "use_proxies"), &TileMap::get_cell_source_id, DEFVAL(false));
+	ClassDB::bind_method(D_METHOD("get_cell_atlas_coords", "layer", "coords", "use_proxies"), &TileMap::get_cell_atlas_coords, DEFVAL(false));
+	ClassDB::bind_method(D_METHOD("get_cell_alternative_tile", "layer", "coords", "use_proxies"), &TileMap::get_cell_alternative_tile, DEFVAL(false));
 	ClassDB::bind_method(D_METHOD("get_cell_tile_data", "layer", "coords", "use_proxies"), &TileMap::get_cell_tile_data, DEFVAL(false));
 	ClassDB::bind_method(D_METHOD("get_cell_tile_data", "layer", "coords", "use_proxies"), &TileMap::get_cell_tile_data, DEFVAL(false));
 
 
 	ClassDB::bind_method(D_METHOD("get_coords_for_body_rid", "body"), &TileMap::get_coords_for_body_rid);
 	ClassDB::bind_method(D_METHOD("get_coords_for_body_rid", "body"), &TileMap::get_coords_for_body_rid);