diff options
author | Ton Roosendaal <ton@blender.org> | 2006-02-22 01:42:33 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-02-22 01:42:33 +0300 |
commit | ecaee2e3c8e202f7f4d4bd7de64a1c70cda3b3c2 (patch) | |
tree | 8c27bc6ee6c82cb19d5dce8afb918e8fe891ef0f | |
parent | 4a7409186f5891ddd94e182e49f8e0892784410f (diff) |
Fix for very old annoyance; when an object is deformed far away from its
object center, it doesn't generate displaylist (or derivedmesh). This
error showed especially on loading files, and you had to advance frame,
zoom out or press Numpad-9 to see stuff.
-rw-r--r-- | source/blender/src/drawobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c index d4e5d102f7c..7a09fc9a80d 100644 --- a/source/blender/src/drawobject.c +++ b/source/blender/src/drawobject.c @@ -1950,9 +1950,9 @@ static int draw_mesh_object(Base *base, int dt) if (finalNeedsFree) finalDM->release(finalDM); } else { - BoundBox *bb = mesh_get_bb(me); - - if(me->totface<=4 || boundbox_clip(ob->obmat, bb)) { + /* don't create boundbox here with mesh_get_bb(), the derived system will make it, puts deformed bb's OK */ + + if(me->totface<=4 || boundbox_clip(ob->obmat, me->bb)) { int baseDMneedsFree, realDMneedsFree; DerivedMesh *baseDM = mesh_get_derived_deform(ob, &baseDMneedsFree); DerivedMesh *realDM = mesh_get_derived_final(ob, &realDMneedsFree); |