diff options
| author | Aaron Franke <arnfranke@yahoo.com> | 2021-06-30 21:24:34 -0400 |
|---|---|---|
| committer | Aaron Franke <arnfranke@yahoo.com> | 2021-07-01 14:13:27 -0400 |
| commit | 2508fd05334c1766bb1ea9c1cd4be4cfcbf7c90d (patch) | |
| tree | d0d0661e69f743670071d51544b2027d3fc1dbb9 /scene/resources/texture.cpp | |
| parent | 382ddd497a732812356fccbe9642d86848a4da9d (diff) | |
| download | redot-engine-2508fd05334c1766bb1ea9c1cd4be4cfcbf7c90d.tar.gz | |
Use PROPERTY_USAGE_NONE instead of 0 for no property usage
Also use const more often.
Diffstat (limited to 'scene/resources/texture.cpp')
| -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 72031c3a69..14f9504dc9 100644 --- a/scene/resources/texture.cpp +++ b/scene/resources/texture.cpp @@ -1873,7 +1873,7 @@ void AnimatedTexture::_validate_property(PropertyInfo &property) const { if (prop.begins_with("frame_")) { int frame = prop.get_slicec('/', 0).get_slicec('_', 1).to_int(); if (frame >= frame_count) { - property.usage = 0; + property.usage = PROPERTY_USAGE_NONE; } } } |
