From 3a81eca027049a2612b334525a72c905350b0f8c Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 22 Dec 2010 18:46:54 +0000 Subject: Report #25350 Loopcut check for deformed meshes was far too wide, it even disabled loopcut on subsurfs. Now added a check for armature/lattice only, and only give a warning, not a return from the tool. --- source/blender/editors/mesh/loopcut.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'source/blender/editors/mesh') diff --git a/source/blender/editors/mesh/loopcut.c b/source/blender/editors/mesh/loopcut.c index bc42bd2747b..e808b64aaeb 100644 --- a/source/blender/editors/mesh/loopcut.c +++ b/source/blender/editors/mesh/loopcut.c @@ -383,15 +383,13 @@ static int ringsel_invoke (bContext *C, wmOperator *op, wmEvent *evt) static int ringcut_invoke (bContext *C, wmOperator *op, wmEvent *evt) { + Object *obedit= CTX_data_edit_object(C); tringselOpData *lcd; EditEdge *edge; int dist = 75; - - if(modifiers_getCageIndex(CTX_data_scene(C), CTX_data_edit_object(C), NULL, 1)>=0) { - BKE_report(op->reports, RPT_WARNING, "Loop cut can't work on deformed edit mesh display"); - return OPERATOR_CANCELLED; - } + if(modifiers_isDeformedByLattice(obedit) || modifiers_isDeformedByArmature(obedit)) + BKE_report(op->reports, RPT_WARNING, "Loop cut doesn't work well on deformed edit mesh display"); view3d_operator_needs_opengl(C); -- cgit v1.2.3