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 /modules/csg | |
parent | 382ddd497a732812356fccbe9642d86848a4da9d (diff) |
Use PROPERTY_USAGE_NONE instead of 0 for no property usage
Also use const more often.
Diffstat (limited to 'modules/csg')
-rw-r--r-- | modules/csg/csg_shape.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index 8b3948b872..8ce823ac9b 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -2158,13 +2158,13 @@ void CSGPolygon3D::_notification(int p_what) { void CSGPolygon3D::_validate_property(PropertyInfo &property) const { if (property.name.begins_with("spin") && mode != MODE_SPIN) { - property.usage = 0; + property.usage = PROPERTY_USAGE_NONE; } if (property.name.begins_with("path") && mode != MODE_PATH) { - property.usage = 0; + property.usage = PROPERTY_USAGE_NONE; } if (property.name == "depth" && mode != MODE_DEPTH) { - property.usage = 0; + property.usage = PROPERTY_USAGE_NONE; } CSGShape3D::_validate_property(property); |