diff options
author | Robert Wenzlaff <rwenzlaff@soylent-green.com> | 2004-03-08 03:24:44 +0300 |
---|---|---|
committer | Robert Wenzlaff <rwenzlaff@soylent-green.com> | 2004-03-08 03:24:44 +0300 |
commit | afe04971c2e9de38a7ac8fd7b0972e28a546a212 (patch) | |
tree | 26d423f147f18a1a28a1978e943190c92becc61c /source | |
parent | cd0b492ca13659b803f8d70beac87ff937b984c4 (diff) |
Rwenzlaff: Force update of displist when effects are present.
In an attempt to optimize, displist wasn't recalced if 3D window subsurf
level was the same as render subsurf level, this kept wave effect
from being calculated in animations if leves were equal.
Fixes 1/2 of bug #1000 (Still doesn't update 3D Window)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/renderconverter/intern/convertBlenderScene.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/renderconverter/intern/convertBlenderScene.c b/source/blender/renderconverter/intern/convertBlenderScene.c index 088692044d2..c2cb79c18b6 100644 --- a/source/blender/renderconverter/intern/convertBlenderScene.c +++ b/source/blender/renderconverter/intern/convertBlenderScene.c @@ -2684,7 +2684,8 @@ void RE_freeRotateBlenderScene(void) MEM_freeN(me->orco); me->orco= 0; } - if (mesh_uses_displist(me) && (me->subdiv!=me->subdivr)) { + if (mesh_uses_displist(me) && ((me->subdiv!=me->subdivr) || (ob->effect.first != NULL) ) ) { + /* Need to recalc for effects since they are time dependant */ makeDispList(ob); /* XXX this should be replaced with proper caching */ me->subdivdone= 0; /* needed to prevent multiple used meshes being recalculated */ } |