diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-10-05 23:49:26 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-10-05 23:50:09 +0300 |
commit | 28d617199dcac26f1c96cf62ebbb7bae2086c839 (patch) | |
tree | 497ab94ceab94150552a72d1293e8295076b7533 /source/blender/editors/armature/armature_edit.c | |
parent | d67972a9e17eba7afa5151f6d3de52330570911f (diff) |
ARMATURE_OT_fill: cleanup
Remove nonsensical insanity check.
Remove FIXME that would never be addressed anyways.
Diffstat (limited to 'source/blender/editors/armature/armature_edit.c')
-rw-r--r-- | source/blender/editors/armature/armature_edit.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/editors/armature/armature_edit.c b/source/blender/editors/armature/armature_edit.c index e32f6030ae3..bc11af7381c 100644 --- a/source/blender/editors/armature/armature_edit.c +++ b/source/blender/editors/armature/armature_edit.c @@ -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; |