diff options
| author | Marcelo Fernandez | 2018-05-08 21:14:31 -0300 |
|---|---|---|
| committer | Marcelo Fernandez | 2018-05-08 21:14:31 -0300 |
| commit | e64bbcc4297af70e8e889026b856f9322082b667 (patch) | |
| tree | eb1b80e1c36ce5b2381e005763a07659b9b47559 /scene | |
| parent | e744d12e568c22d2f260eee15fc9b2cade3dcdd8 (diff) | |
| download | godot-e64bbcc4297af70e8e889026b856f9322082b667.tar.gz godot-e64bbcc4297af70e8e889026b856f9322082b667.tar.zst godot-e64bbcc4297af70e8e889026b856f9322082b667.zip | |
Fix some enums missing its bind
Diffstat (limited to 'scene')
| -rw-r--r-- | scene/3d/physics_body.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/3d/physics_body.cpp b/scene/3d/physics_body.cpp index 452879998..5512fd4f1 100644 --- a/scene/3d/physics_body.cpp +++ b/scene/3d/physics_body.cpp @@ -1922,6 +1922,13 @@ void PhysicalBone::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::REAL, "friction", PROPERTY_HINT_RANGE, "0,1,0.01"), "set_friction", "get_friction"); ADD_PROPERTY(PropertyInfo(Variant::REAL, "bounce", PROPERTY_HINT_RANGE, "0,1,0.01"), "set_bounce", "get_bounce"); ADD_PROPERTY(PropertyInfo(Variant::REAL, "gravity_scale", PROPERTY_HINT_RANGE, "-10,10,0.01"), "set_gravity_scale", "get_gravity_scale"); + + BIND_ENUM_CONSTANT(JOINT_TYPE_NONE); + BIND_ENUM_CONSTANT(JOINT_TYPE_PIN); + BIND_ENUM_CONSTANT(JOINT_TYPE_CONE); + BIND_ENUM_CONSTANT(JOINT_TYPE_HINGE); + BIND_ENUM_CONSTANT(JOINT_TYPE_SLIDER); + BIND_ENUM_CONSTANT(JOINT_TYPE_6DOF); } Skeleton *PhysicalBone::find_skeleton_parent(Node *p_parent) { |
