diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-01-13 14:18:08 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-01-13 14:18:08 +0400 |
commit | b82cce04d63a6c7421c9e29c321fe3c0f273204f (patch) | |
tree | 31bb5cfcf4821a904f098632bf9904dc935a5f42 | |
parent | 881fb4387883e751e333836a50da2ec6dcc23afb (diff) |
Remove direct mball creation from the drawing code
This is the same case as curves, and really this is now
totally up to DAG, If something fails, poke me to fix the DAG.
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 9a296935c26..52fdb6f50df 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -4055,11 +4055,7 @@ static bool drawDispList_nobackface(Scene *scene, View3D *v3d, RegionView3D *rv3 case OB_MBALL: if (BKE_mball_is_basis(ob)) { - lb = ob->curve_cache ? &ob->curve_cache->disp : NULL; - if (ELEM(NULL, lb, lb->first)) { - BKE_displist_make_mball(G.main->eval_ctx, scene, ob); - lb = &ob->curve_cache->disp; - } + lb = &ob->curve_cache->disp; if (lb->first == NULL) { return true; } @@ -6268,10 +6264,6 @@ static void draw_bounding_volume(Scene *scene, Object *ob, char type) else if (ob->type == OB_MBALL) { if (BKE_mball_is_basis(ob)) { bb = ob->bb; - if (bb == NULL) { - BKE_displist_make_mball(G.main->eval_ctx, scene, ob); - bb = ob->bb; - } } } else if (ob->type == OB_ARMATURE) { |