diff options
author | Poommetee Ketson <poommetee@protonmail.com> | 2017-11-24 13:20:23 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-24 13:20:23 +0700 |
commit | 0b93d0676d65a327a341ed503d95ea17526f07bc (patch) | |
tree | 88589d24c219f34ffb29b0036a8c6871fba2632f /scene/resources/tile_set.cpp | |
parent | 6086252f66ac185b97b0580352383e4b068b9fe5 (diff) | |
parent | e967dbca6fee2996c71593a1e7ea0221f3c41411 (diff) |
Merge pull request #13231 from endragor/tile-bindings-fix
Fix TileMap and TileSet ClassDB bindings
Diffstat (limited to 'scene/resources/tile_set.cpp')
-rw-r--r-- | scene/resources/tile_set.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp index 657d5f6c80..6fab597d2b 100644 --- a/scene/resources/tile_set.cpp +++ b/scene/resources/tile_set.cpp @@ -913,7 +913,7 @@ void TileSet::_bind_methods() { ClassDB::bind_method(D_METHOD("tile_get_shape_transform", "id", "shape_id"), &TileSet::tile_get_shape_transform); ClassDB::bind_method(D_METHOD("tile_set_shape_one_way", "id", "shape_id", "one_way"), &TileSet::tile_set_shape_one_way); ClassDB::bind_method(D_METHOD("tile_get_shape_one_way", "id", "shape_id"), &TileSet::tile_get_shape_one_way); - ClassDB::bind_method(D_METHOD("tile_add_shape", "id", "shape", "shape_transform", "one_way"), &TileSet::tile_add_shape, DEFVAL(false)); + ClassDB::bind_method(D_METHOD("tile_add_shape", "id", "shape", "shape_transform", "one_way", "autotile_coord"), &TileSet::tile_add_shape, DEFVAL(false), DEFVAL(Vector2())); ClassDB::bind_method(D_METHOD("tile_get_shape_count", "id"), &TileSet::tile_get_shape_count); ClassDB::bind_method(D_METHOD("tile_set_shapes", "id", "shapes"), &TileSet::_tile_set_shapes); ClassDB::bind_method(D_METHOD("tile_get_shapes", "id"), &TileSet::_tile_get_shapes); |