summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorArnav Vijaywargiya <binarydigitz01@protonmail.com>2022-01-11 09:47:42 +0530
committerArnav Vijaywargiya <binarydigitz01@protonmail.com>2022-01-11 17:17:11 +0530
commit0c46f73b5e5e89ba8fbe1f2294f203b5e9df2d0a (patch)
tree14dbaba7255857cb7711f83f89e111f71f931385 /scene/2d
parentb52f90e795e0de9c0e7056fd5c83d2c5e3d207af (diff)
Fixed incorrect property types
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/polygon_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/polygon_2d.cpp b/scene/2d/polygon_2d.cpp
index 5451d95be9..1f4dec6864 100644
--- a/scene/2d/polygon_2d.cpp
+++ b/scene/2d/polygon_2d.cpp
@@ -662,7 +662,7 @@ void Polygon2D::_bind_methods() {
ADD_PROPERTY(PropertyInfo(Variant::PACKED_VECTOR2_ARRAY, "uv"), "set_uv", "get_uv");
ADD_PROPERTY(PropertyInfo(Variant::PACKED_COLOR_ARRAY, "vertex_colors"), "set_vertex_colors", "get_vertex_colors");
ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "polygons"), "set_polygons", "get_polygons");
- ADD_PROPERTY(PropertyInfo(Variant::BOOL, "bones", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NO_EDITOR), "_set_bones", "_get_bones");
+ ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "bones", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NO_EDITOR), "_set_bones", "_get_bones");
ADD_PROPERTY(PropertyInfo(Variant::INT, "internal_vertex_count", PROPERTY_HINT_RANGE, "0,1000"), "set_internal_vertex_count", "get_internal_vertex_count");
}