-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed TileMap::set_cell alternative_tile default value to 0 #58659
Changed TileMap::set_cell alternative_tile default value to 0 #58659
Conversation
IgorKordiukiewicz
commented
Mar 1, 2022
•
edited by akien-mga
Loading
edited by akien-mga
- Fixes New TileSet editor: set_tile only writes NULL #57833
You need to change the default value also where the method is bound: Line 3625 in 3f9a601
|
85a777d
to
a387bc3
Compare
Updated |
doc/classes/TileMap.xml
Outdated
<description> | ||
Sets the tile indentifiers for the cell on layer [code]layer[/code] at coordinates [code]coords[/code]. Each tile of the [TileSet] is identified using three parts: | ||
- The source identifier [code]source_id[/code] identifies a [TileSetSource] identifier. See [method TileSet.set_source_id], | ||
- The atlas coordinates identifier [code]atlas_coords[/code] identifies a tile coordinates in the atlas (if the source is a [TileSetAtlasSource]. For [TileSetScenesCollectionSource] it should be 0), | ||
- The alternative tile identifier [code]alternative_tile[/code] identifies a tile alternative the source is a [TileSetAtlasSource], and the scene for a [TileSetScenesCollectionSource]. | ||
- The alternative tile identifier [code]alternative_tile[/code] identifies a tile alternative the source is a [TileSetAtlasSource], and the scene for a [TileSetScenesCollectionSource]. Passing -1 will clear the tile. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this precision should be here. You have to set all three args to -1, Vector2i(-1,-1) and -1 to clear a tile, not only the last one.
I am not strictly against the change, but it annoys me that you would have to call If we want to change that argument default value we should likely add an |
a387bc3
to
d3b03ef
Compare
Updated |
d3b03ef
to
466644f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
466644f
to
8f49150
Compare
Thanks! |