summaryrefslogtreecommitdiff
path: root/scene/main
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/main
parent382ddd497a732812356fccbe9642d86848a4da9d (diff)
Use PROPERTY_USAGE_NONE instead of 0 for no property usage
Also use const more often.
Diffstat (limited to 'scene/main')
-rw-r--r--scene/main/canvas_item.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/canvas_item.cpp b/scene/main/canvas_item.cpp
index 361f584a5d..db55f4feb7 100644
--- a/scene/main/canvas_item.cpp
+++ b/scene/main/canvas_item.cpp
@@ -239,7 +239,7 @@ bool CanvasItemMaterial::get_particles_anim_loop() const {
void CanvasItemMaterial::_validate_property(PropertyInfo &property) const {
if (property.name.begins_with("particles_anim_") && !particles_animation) {
- property.usage = 0;
+ property.usage = PROPERTY_USAGE_NONE;
}
}