summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Rubinsky <chaosus89@gmail.com>2023-01-01 20:51:32 +0300
committerGitHub <noreply@github.com>2023-01-01 20:51:32 +0300
commit57267709e665f1683e79bd5d3432be2be5db6c1d (patch)
tree0e4a5522fcb51c7c9205e01b45a6a839e72fa8eb
parente1ca0012db82ee169415121c64a815705f32edf9 (diff)
parentaf845799da7cc08ed2830f0a9b53c8bf9fe935f3 (diff)
Merge pull request #70808 from jamesmintram/james/bug/fix-placeholder-tex-size-binding
Fixes https://github.com/godotengine/godot/issues/70735
-rw-r--r--scene/resources/texture.cpp2
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() {