Motion blur didn't work for Object Ipos (rest worked OK), so simple
authorTon Roosendaal <ton@blender.org>
Fri, 22 Jul 2005 19:24:10 +0000 (19:24 +0000)
committerTon Roosendaal <ton@blender.org>
Fri, 22 Jul 2005 19:24:10 +0000 (19:24 +0000)
fix. :)

Also removed the ugly old 'update for newframe' from renderwin.c, the
new call scene_update_for_newframe() does it much friendlier.

source/blender/blenkernel/intern/object.c
source/blender/src/renderwin.c

index 05a09e8c0392d14cd733d086ad6d7d6b30ca4eb6..17bb0ab17c645051ba4e8719830bb20a4228d70e 100644 (file)
@@ -1313,14 +1313,12 @@ void where_is_object_time(Object *ob, float ctime)
        /* is faster, but should keep track of timeoffs */
        
        if(ob==NULL) return;
-
-       if( ctime != ob->ctime) {
-               ob->ctime= ctime;
+       
+       stime= bsystem_time(ob, 0, ctime, 0.0);
+       if( stime != ob->ctime) {
+               ob->ctime= stime;
                
                if(ob->ipo) {
-                       
-                       stime= bsystem_time(ob, 0, ctime, 0.0);
-
                        calc_ipo(ob->ipo, stime);
                        execute_ipo((ID *)ob, ob->ipo);
                }
index ae5c3b6c00e3f5fcae09be359edeee5875f77cb2..2f27b059663f0a6be160ccf153f1227c8b894938 100644 (file)
@@ -1071,7 +1071,7 @@ static void do_render(View3D *ogl_render_view3d, int anim, int force_dispwin)
                RE_initrender(ogl_render_view3d);
        }
 
-       if(anim) update_for_newframe_muted();  // only when anim, causes redraw event which frustrates dispview
+       scene_update_for_newframe(G.scene, G.scene->lay);       // no redraw needed, this restores to view as we left it
        
        if (render_win) window_set_cursor(render_win->win, CURSOR_STD);