mirror of
https://github.com/godotengine/godot.git
synced 2025-01-06 02:00:57 +00:00
Merge pull request #57376 from Calinou/gradienttexture2d-clamp-size
This commit is contained in:
commit
6914a58f99
@ -2103,8 +2103,8 @@ void GradientTexture2D::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("_update"), &GradientTexture2D::_update);
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "gradient", PROPERTY_HINT_RESOURCE_TYPE, "Gradient", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_EDITOR_INSTANTIATE_OBJECT), "set_gradient", "get_gradient");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "width", PROPERTY_HINT_RANGE, "1,2048,1,or_greater"), "set_width", "get_width");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "height", PROPERTY_HINT_RANGE, "1,2048,1,or_greater"), "set_height", "get_height");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "width", PROPERTY_HINT_RANGE, "1,2048"), "set_width", "get_width");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::INT, "height", PROPERTY_HINT_RANGE, "1,2048"), "set_height", "get_height");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "use_hdr"), "set_use_hdr", "is_using_hdr");
|
||||
|
||||
ADD_GROUP("Fill", "fill_");
|
||||
|
Loading…
Reference in New Issue
Block a user