summaryrefslogtreecommitdiffstats
path: root/scene/animation/animation_tree.cpp
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2021-06-30 21:24:34 -0400
committerAaron Franke <arnfranke@yahoo.com>2021-07-01 14:13:27 -0400
commit2508fd05334c1766bb1ea9c1cd4be4cfcbf7c90d (patch)
treed0d0661e69f743670071d51544b2027d3fc1dbb9 /scene/animation/animation_tree.cpp
parent382ddd497a732812356fccbe9642d86848a4da9d (diff)
downloadredot-engine-2508fd05334c1766bb1ea9c1cd4be4cfcbf7c90d.tar.gz
Use PROPERTY_USAGE_NONE instead of 0 for no property usage
Also use const more often.
Diffstat (limited to 'scene/animation/animation_tree.cpp')
-rw-r--r--scene/animation/animation_tree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp
index 6fac70bdd5..1e07f83d09 100644
--- a/scene/animation/animation_tree.cpp
+++ b/scene/animation/animation_tree.cpp
@@ -385,7 +385,7 @@ void AnimationNode::_set_filters(const Array &p_filters) {
void AnimationNode::_validate_property(PropertyInfo &property) const {
if (!has_filter() && (property.name == "filter_enabled" || property.name == "filters")) {
- property.usage = 0;
+ property.usage = PROPERTY_USAGE_NONE;
}
}