diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-03-26 16:20:30 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-03-26 16:20:30 +0100 |
commit | 0d772c6e6ecf210fa5b38df790b448cb80d4eb8c (patch) | |
tree | c73a58e37852fdf6be7a5dc4a126f5e2bac96928 /scene/resources/world_boundary_shape_2d.cpp | |
parent | 188ca5470b11222f3caf27082cfadce861dbaa60 (diff) | |
download | redot-engine-0d772c6e6ecf210fa5b38df790b448cb80d4eb8c.tar.gz |
Improve range property hints for various collision shapes
Fixes #36419.
Co-authored-by: Andrii Doroshenko (Xrayez) <xrayez@gmail.com>
Diffstat (limited to 'scene/resources/world_boundary_shape_2d.cpp')
-rw-r--r-- | scene/resources/world_boundary_shape_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/world_boundary_shape_2d.cpp b/scene/resources/world_boundary_shape_2d.cpp index 9789388c6a..ac5be79d24 100644 --- a/scene/resources/world_boundary_shape_2d.cpp +++ b/scene/resources/world_boundary_shape_2d.cpp @@ -108,7 +108,7 @@ void WorldBoundaryShape2D::_bind_methods() { ClassDB::bind_method(D_METHOD("get_distance"), &WorldBoundaryShape2D::get_distance); ADD_PROPERTY(PropertyInfo(Variant::VECTOR2, "normal"), "set_normal", "get_normal"); - ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "distance"), "set_distance", "get_distance"); + ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "distance", PROPERTY_HINT_RANGE, "0.01,1024,0.01,or_greater"), "set_distance", "get_distance"); } WorldBoundaryShape2D::WorldBoundaryShape2D() : |