summaryrefslogtreecommitdiff
path: root/scene/resources/separation_ray_shape_2d.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-03-26 20:18:34 +0100
committerGitHub <noreply@github.com>2022-03-26 20:18:34 +0100
commit96ffcc4d52029d5712e1a7b8d454c5751c26ceb0 (patch)
tree127fbc73ce6313bafce8e2a797826c8392e17973 /scene/resources/separation_ray_shape_2d.cpp
parent299ad650416590028a40ef0792f044aa0ba9a296 (diff)
parent0d772c6e6ecf210fa5b38df790b448cb80d4eb8c (diff)
Merge pull request #59550 from akien-mga/shapes-metrics-or_greater
Diffstat (limited to 'scene/resources/separation_ray_shape_2d.cpp')
-rw-r--r--scene/resources/separation_ray_shape_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/separation_ray_shape_2d.cpp b/scene/resources/separation_ray_shape_2d.cpp
index 0406c91b70..df7b0d969a 100644
--- a/scene/resources/separation_ray_shape_2d.cpp
+++ b/scene/resources/separation_ray_shape_2d.cpp
@@ -89,7 +89,7 @@ void SeparationRayShape2D::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_slide_on_slope", "active"), &SeparationRayShape2D::set_slide_on_slope);
ClassDB::bind_method(D_METHOD("get_slide_on_slope"), &SeparationRayShape2D::get_slide_on_slope);
- ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "length"), "set_length", "get_length");
+ ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "length", PROPERTY_HINT_RANGE, "0.01,1024,0.01,or_greater"), "set_length", "get_length");
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "slide_on_slope"), "set_slide_on_slope", "get_slide_on_slope");
}