diff options
author | James Mintram <james@rattlecan.games> | 2023-01-01 16:12:10 +0000 |
---|---|---|
committer | James Mintram <james@rattlecan.games> | 2023-01-01 16:12:10 +0000 |
commit | af845799da7cc08ed2830f0a9b53c8bf9fe935f3 (patch) | |
tree | bb2be9c70facadc5e9ccd6d8b599aeff79d2d4cb | |
parent | 8a98110e3e353a9a3b86b4a0bd56adf405bd6d93 (diff) |
Change binding type of PlaceholderTexture2D.set/get_size to Vector2
-rw-r--r-- | scene/resources/texture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp index 18915e294e..48eaf98aa3 100644 --- a/scene/resources/texture.cpp +++ b/scene/resources/texture.cpp @@ -3386,7 +3386,7 @@ RID PlaceholderTexture2D::get_rid() const { void PlaceholderTexture2D::_bind_methods() { ClassDB::bind_method(D_METHOD("set_size", "size"), &PlaceholderTexture2D::set_size); - ADD_PROPERTY(PropertyInfo(Variant::VECTOR2I, "size", PROPERTY_HINT_NONE, "suffix:px"), "set_size", "get_size"); + ADD_PROPERTY(PropertyInfo(Variant::VECTOR2, "size", PROPERTY_HINT_NONE, "suffix:px"), "set_size", "get_size"); } PlaceholderTexture2D::PlaceholderTexture2D() { |