Skip to content

Commit

Permalink
Sprite2D: Use correct name to hide region_filter_clip_enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcarnie committed Feb 12, 2025
1 parent 23c1389 commit 1272310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/2d/sprite_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ void Sprite2D::_validate_property(PropertyInfo &p_property) const {
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;
}
}
Expand Down

0 comments on commit 1272310

Please sign in to comment.