diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-11-04 00:18:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 00:18:44 +0100 |
commit | 78931aa040bb0d0586345f95cc982605c0720ba1 (patch) | |
tree | fd79549cd57fd58007c0f6a2e0a3d589e7a7f9d8 /modules/csg | |
parent | 536757b80b092a0cc3b2819d502e0129196d6a19 (diff) | |
parent | c012fbc8b235b86ed70c501834825d91292f8811 (diff) |
Merge pull request #54571 from Calinou/rename-noeditor-property-hint
Diffstat (limited to 'modules/csg')
-rw-r--r-- | modules/csg/csg_shape.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index 863936ab8c..b9be7535dc 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -572,9 +572,9 @@ void CSGShape3D::_validate_property(PropertyInfo &property) const { bool is_collision_prefixed = property.name.begins_with("collision_"); if ((is_collision_prefixed || property.name.begins_with("use_collision")) && is_inside_tree() && !is_root_shape()) { //hide collision if not root - property.usage = PROPERTY_USAGE_NOEDITOR; + property.usage = PROPERTY_USAGE_NO_EDITOR; } else if (is_collision_prefixed && !bool(get("use_collision"))) { - property.usage = PROPERTY_USAGE_NOEDITOR | PROPERTY_USAGE_INTERNAL; + property.usage = PROPERTY_USAGE_NO_EDITOR | PROPERTY_USAGE_INTERNAL; } GeometryInstance3D::_validate_property(property); } |