mirror of https://github.com/godotengine/godot
Sprite2D: Use correct name to hide `region_filter_clip_enabled`
This commit is contained in:
parent
23c1389f92
commit
1272310a14
|
|
@ -423,7 +423,7 @@ void Sprite2D::_validate_property(PropertyInfo &p_property) const {
|
||||||
p_property.usage |= PROPERTY_USAGE_KEYING_INCREMENTS;
|
p_property.usage |= PROPERTY_USAGE_KEYING_INCREMENTS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!region_enabled && (p_property.name == "region_rect" || p_property.name == "region_filter_clip")) {
|
if (!region_enabled && (p_property.name == "region_rect" || p_property.name == "region_filter_clip_enabled")) {
|
||||||
p_property.usage = PROPERTY_USAGE_NO_EDITOR;
|
p_property.usage = PROPERTY_USAGE_NO_EDITOR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue