summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-01 21:29:32 +0200
committerGitHub <noreply@github.com>2021-07-01 21:29:32 +0200
commit022640a8fd31428d7018da2626e2367b64caffe9 (patch)
treed0d0661e69f743670071d51544b2027d3fc1dbb9 /scene/main
parent382ddd497a732812356fccbe9642d86848a4da9d (diff)
parent2508fd05334c1766bb1ea9c1cd4be4cfcbf7c90d (diff)
Merge pull request #50041 from aaronfranke/prop-usage-flags
Use `PROPERTY_USAGE_NONE` instead of `0` for no property usage
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;
}
}