have timeoffset use (int)floor(timeoffset+0.5f) when converting to an int to avoid...
[blender.git] / source / blender / blenkernel / intern / group.c
index 6a807abc396738cba4cf4e473167f7f3af90d183..2a4d3f6d30140c568f0f8f7c4dea6cb07b391c08 100644 (file)
@@ -333,7 +333,7 @@ void group_handle_recalc_and_update(Scene *scene, Object *parent, Group *group)
                
                /* switch to local time */
                cfrao= scene->r.cfra;
-               scene->r.cfra -= (int)give_timeoffset(parent);
+               scene->r.cfra -= (int)floor(give_timeoffset(parent) + 0.5f);
                
                /* we need a DAG per group... */
                for(go= group->gobject.first; go; go= go->next) {