From 2508fd05334c1766bb1ea9c1cd4be4cfcbf7c90d Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Wed, 30 Jun 2021 21:24:34 -0400 Subject: Use PROPERTY_USAGE_NONE instead of 0 for no property usage Also use const more often. --- scene/main/canvas_item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/main') 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; } } -- cgit v1.2.3