diff options
author | Ton Roosendaal <ton@blender.org> | 2010-12-22 21:46:54 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-12-22 21:46:54 +0300 |
commit | 3a81eca027049a2612b334525a72c905350b0f8c (patch) | |
tree | f6c2cd1ac068ade7f15448cc8c196caaf6788a2a /source/blender/editors | |
parent | 009eb42c0e594f77dd38b40e1f37d863b3b2b6d0 (diff) |
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.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/mesh/loopcut.c | 8 |
1 files changed, 3 insertions, 5 deletions
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); |