diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-10-07 15:36:29 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-10-07 15:36:29 +0400 |
commit | a899e9dd18a988e711194b50dd670dc180e3ba28 (patch) | |
tree | 61cce64132be0410b289768d986ba1c7ed0f1980 /source/blender/blenkernel/intern/anim.c | |
parent | efe38580007526ff210dbf5fbeb0815ff081dc65 (diff) |
Check if the object is in editmode with (ob->mode==OB_MODE_EDIT) rather then (ob==scene->obedit)
Was trying to fix a hard to redo crash with custom bone shapes in editmode but cant redo. still, will help with future multi-editmode.
Diffstat (limited to 'source/blender/blenkernel/intern/anim.c')
-rw-r--r-- | source/blender/blenkernel/intern/anim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/anim.c b/source/blender/blenkernel/intern/anim.c index 5cd901066f8..bb7a792943e 100644 --- a/source/blender/blenkernel/intern/anim.c +++ b/source/blender/blenkernel/intern/anim.c @@ -549,7 +549,7 @@ static void vertex_duplilist(ListBase *lb, ID *id, Scene *scene, Object *par, fl /* mballs have a different dupli handling */ if(ob->type!=OB_MBALL) ob->flag |= OB_DONE; /* doesnt render */ - if(par==scene->obedit) { + if(par->mode==OB_MODE_EDIT) { dm->foreachMappedVert(dm, vertex_dupli__mapFunc, (void*) &vdd); } else { @@ -760,7 +760,7 @@ static void face_duplilist(ListBase *lb, ID *id, Scene *scene, Object *par, floa else go= go->next; /* group loop */ } - if(par==scene->obedit) { + if(par->mode==OB_MODE_EDIT) { MEM_freeN(mface); MEM_freeN(mvert); } |