Fix #22961: linked duplicate meshes are all displayed in edit mode when

one of them is in edit mode. This doesn't give correct results for modifiers
though, there was already a check to disable this when are shape keys, so
now it is also disabled if either of the meshes has modifiers.
This commit is contained in:
Brecht Van Lommel 2010-08-06 17:41:45 +00:00
parent 6d5043a529
commit 8d2e59e659

@ -2727,7 +2727,8 @@ static int draw_mesh_object(Scene *scene, ARegion *ar, View3D *v3d, RegionView3D
int do_alpha_pass= 0, drawlinked= 0, retval= 0, glsl, check_alpha;
if(obedit && ob!=obedit && ob->data==obedit->data) {
if(ob_get_key(ob));
if(ob_get_key(ob) || ob_get_key(obedit));
else if(ob->modifiers.first || obedit->modifiers.first);
else drawlinked= 1;
}