ARMATURE_OT_fill: cleanup

Remove nonsensical insanity check.
Remove FIXME that would never be addressed anyways.
This commit is contained in:
Dalai Felinto 2018-10-05 17:49:26 -03:00
parent d67972a9e1
commit 28d617199d
1 changed files with 0 additions and 6 deletions

View File

@ -668,11 +668,6 @@ static int armature_fill_bones_exec(bContext *C, wmOperator *op)
int count;
bool mixed_object_error = false;
/* sanity checks */
if (ELEM(NULL, obedit_active, obedit_active->data)) {
return OPERATOR_CANCELLED;
}
/* loop over all bones, and only consider if visible */
bArmature *arm = NULL;
CTX_DATA_BEGIN_WITH_ID(C, EditBone *, ebone, visible_bones, bArmature *, arm_iter)
@ -826,7 +821,6 @@ static int armature_fill_bones_exec(bContext *C, wmOperator *op)
}
}
else {
/* FIXME.. figure out a method for multiple bones */
BKE_reportf(op->reports, RPT_ERROR, "Too many points selected: %d", count);
BLI_freelistN(&points);
return OPERATOR_CANCELLED;