diff options
author | Mikael Hermansson <mikael@hermansson.io> | 2023-03-18 17:19:21 +0100 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-03-27 17:35:04 +0200 |
commit | 30a9b5fe9b3af2c3056bfb5fe9f9e5df380ed7e6 (patch) | |
tree | 762d820789d3c43550d13b5868b99e84ee899636 | |
parent | 465be40e10529883840f04ef39002d0dc6621116 (diff) |
Open up bounds of `Shape3D.margin` to support other physics engines
(cherry picked from commit ec6694ce3c7ce53ee076ed5e6f0d08d1357a5381)
-rw-r--r-- | scene/resources/shape_3d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/shape_3d.cpp b/scene/resources/shape_3d.cpp index 18a4001f38..5a79392ba5 100644 --- a/scene/resources/shape_3d.cpp +++ b/scene/resources/shape_3d.cpp @@ -117,7 +117,7 @@ void Shape3D::_bind_methods() { ClassDB::bind_method(D_METHOD("get_debug_mesh"), &Shape3D::get_debug_mesh); ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "custom_solver_bias", PROPERTY_HINT_RANGE, "0,1,0.001"), "set_custom_solver_bias", "get_custom_solver_bias"); - ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "margin", PROPERTY_HINT_RANGE, "0.001,10,0.001,suffix:m"), "set_margin", "get_margin"); + ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "margin", PROPERTY_HINT_RANGE, "0,10,0.001,or_greater,suffix:m"), "set_margin", "get_margin"); } Shape3D::Shape3D() { |