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
This commit is contained in:
Philipp Oeser 2019-09-12 10:33:19 +02:00
parent bbae7874c0
commit 2cec4af124
Notes: blender-bot 2023-02-14 07:47:59 +01:00
Referenced by issue #69582, Empties no longer support Rigid Body Constraints
1 changed files with 1 additions and 8 deletions

View File

@ -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(