diff options
author | Jason Hays <jason_hays22@mymail.eku.edu> | 2011-08-10 19:50:21 +0400 |
---|---|---|
committer | Jason Hays <jason_hays22@mymail.eku.edu> | 2011-08-10 19:50:21 +0400 |
commit | e9393aa252aaa0a69dfbe8be6390813b57ae8fad (patch) | |
tree | 67408899bf304f7b7f8440463a01bd17985f3b0e /source/blender/editors/object/object_vgroup.c | |
parent | a42426071be46ee164e880822590752ac852fba6 (diff) |
Added an error msg for Fix Deforms tool for active mirror modifiers
Stopped trying to draw verts with subdivision surface modifier active--
or any other time the dm->drawSelectedVerts function is 0.
Diffstat (limited to 'source/blender/editors/object/object_vgroup.c')
-rw-r--r-- | source/blender/editors/object/object_vgroup.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c index ea5ce3fbc47..6679b7425bd 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -2311,7 +2311,19 @@ static int vertex_group_fix_exec(bContext *C, wmOperator *op) float distToBe= RNA_float_get(op->ptr,"dist"); float strength= RNA_float_get(op->ptr,"strength"); float cp= RNA_float_get(op->ptr,"cp"); + ModifierData *md = ob->modifiers.first; + + while(md) { + if(md->type == eModifierType_Mirror && (md->mode&eModifierMode_Realtime)) { + break; + } + md = md->next; + } + if(md && md->type == eModifierType_Mirror) { + BKE_report(op->reports, RPT_ERROR_INVALID_CONTEXT, "This operator does not support an active mirror modifier"); + return OPERATOR_CANCELLED; + } vgroup_fix(scene, ob, distToBe, strength, cp); DAG_id_tag_update(&ob->id, OB_RECALC_DATA); |