diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-10 12:41:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-10 12:41:58 +0200 |
commit | fd74dd15ad148ead0d7c2aa867aebfa8e58b06a9 (patch) | |
tree | 4e853036763c2a771a60a867e8b263834d08d5c1 /scene | |
parent | d9a96878f2e9251ca55a60e886559e975cdfdd51 (diff) | |
parent | 3f01fd5180e46fa2c1e57c9792596f285de55d82 (diff) |
Merge pull request #21820 from capnm/fix-GradientTexture-width-property
Set the lower bound for the GradientTexture width property to 1
Diffstat (limited to 'scene')
-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 811e5c3d2c..dba3e4d71b 100644 --- a/scene/resources/texture.cpp +++ b/scene/resources/texture.cpp @@ -1606,7 +1606,7 @@ void GradientTexture::_bind_methods() { ClassDB::bind_method(D_METHOD("_update"), &GradientTexture::_update); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "gradient", PROPERTY_HINT_RESOURCE_TYPE, "Gradient"), "set_gradient", "get_gradient"); - ADD_PROPERTY(PropertyInfo(Variant::INT, "width"), "set_width", "get_width"); + ADD_PROPERTY(PropertyInfo(Variant::INT, "width", PROPERTY_HINT_RANGE, "1,2048,1,or_greater"), "set_width", "get_width"); } void GradientTexture::set_gradient(Ref<Gradient> p_gradient) { |