summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrennen Shaughnessy <pinsaasin@gmail.com>2023-03-31 19:40:45 -0400
committerYuri Sizov <yuris@humnom.net>2023-04-03 18:36:27 +0200
commit040b432a1273b2fc98734e178b478603997d9605 (patch)
tree3987037f377b9a0797ae136e2fcd55995ca3a44e
parentb912905d233be9e6ca544fdf99bddcdc6990a7e3 (diff)
Fixed property hint for platform layers on 3D physics body
(cherry picked from commit 2d16fe681d25d4119099e876ef809358cc45fa8a)
-rw-r--r--scene/3d/physics_body_3d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/physics_body_3d.cpp b/scene/3d/physics_body_3d.cpp
index ab5b054bb3..89bb1b5c65 100644
--- a/scene/3d/physics_body_3d.cpp
+++ b/scene/3d/physics_body_3d.cpp
@@ -2032,8 +2032,8 @@ void CharacterBody3D::_bind_methods() {
ADD_GROUP("Moving Platform", "platform_");
ADD_PROPERTY(PropertyInfo(Variant::INT, "platform_on_leave", PROPERTY_HINT_ENUM, "Add Velocity,Add Upward Velocity,Do Nothing", PROPERTY_USAGE_DEFAULT), "set_platform_on_leave", "get_platform_on_leave");
- ADD_PROPERTY(PropertyInfo(Variant::INT, "platform_floor_layers", PROPERTY_HINT_LAYERS_2D_PHYSICS), "set_platform_floor_layers", "get_platform_floor_layers");
- ADD_PROPERTY(PropertyInfo(Variant::INT, "platform_wall_layers", PROPERTY_HINT_LAYERS_2D_PHYSICS), "set_platform_wall_layers", "get_platform_wall_layers");
+ ADD_PROPERTY(PropertyInfo(Variant::INT, "platform_floor_layers", PROPERTY_HINT_LAYERS_3D_PHYSICS), "set_platform_floor_layers", "get_platform_floor_layers");
+ ADD_PROPERTY(PropertyInfo(Variant::INT, "platform_wall_layers", PROPERTY_HINT_LAYERS_3D_PHYSICS), "set_platform_wall_layers", "get_platform_wall_layers");
ADD_GROUP("Collision", "");
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "safe_margin", PROPERTY_HINT_RANGE, "0.001,256,0.001,suffix:m"), "set_safe_margin", "get_safe_margin");