diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-09-12 11:33:19 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2019-09-12 12:24:23 +0300 |
commit | 2cec4af124d42fcdb1f48e4dfc8a56f0ade000e9 (patch) | |
tree | 9e205035577906ae69568c75c00dcaf84e899788 | |
parent | bbae7874c04b890512eeacdd322f9972d9c773f9 (diff) |
Fix T69582: Empties no longer support Rigid Body Constraints
This is caused by rB1342d1879e12 and would also break the whole
"Connect" workflow [which relies on empties]
Reviewers: mont29, brecht
Maniphest Tasks: T69582
Differential Revision: https://developer.blender.org/D5772
-rw-r--r-- | source/blender/editors/physics/rigidbody_constraint.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/source/blender/editors/physics/rigidbody_constraint.c b/source/blender/editors/physics/rigidbody_constraint.c index a1d76174cc8..4b1d51ee6c2 100644 --- a/source/blender/editors/physics/rigidbody_constraint.c +++ b/source/blender/editors/physics/rigidbody_constraint.c @@ -81,14 +81,7 @@ static bool ED_operator_rigidbody_con_add_poll(bContext *C) ID_IS_LINKED(&scene->rigidbody_world->constraints->id))) { return false; } - - if (ED_operator_object_active_editable(C)) { - Object *ob = ED_object_active_context(C); - return (ob && ob->type == OB_MESH); - } - else { - return false; - } + return ED_operator_object_active_editable(C); } bool ED_rigidbody_constraint_add( |