Partial cleanup of timing system, with some guidance from Joshua:
authorMatt Ebb <matt@mke3.net>
Sun, 27 Jun 2010 05:39:55 +0000 (05:39 +0000)
committerMatt Ebb <matt@mke3.net>
Sun, 27 Jun 2010 05:39:55 +0000 (05:39 +0000)
commit03fa4bb9992293b51eb7c24f2c1f810df634e632
tree7dacebe843bf9c041b3ebb220665f428d58e2804
parentea4e5a08cdb782d314cee48dde5dff9331054fe3
Partial cleanup of timing system, with some guidance from Joshua:

* Fractional frames support has been changed to use a new var, scene->r.subframe.
This is a 0.0-1.0 float representing a subframe interval, used in generating a final float
frame number to evaluate animation system etc.
* Changed frame_to_float() and some instances of bsystem_time() into a convenience function:
float BKE_curframe(scene) which retrieves the floating point current frame, after subframe
and frame length corrections.
* Removed blur_offs and field_offs globals. These are now stored in render, used to
generate a scene->r.subframe before render database processing.
22 files changed:
source/blender/blenkernel/BKE_scene.h
source/blender/blenkernel/intern/action.c
source/blender/blenkernel/intern/object.c
source/blender/blenkernel/intern/particle_system.c
source/blender/blenkernel/intern/scene.c
source/blender/editors/animation/anim_ops.c
source/blender/editors/include/ED_keyframing.h
source/blender/editors/screen/screen_ops.c
source/blender/editors/space_action/action_edit.c
source/blender/editors/space_graph/graph_edit.c
source/blender/editors/space_graph/graph_ops.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/makesdna/DNA_scene_types.h
source/blender/modifiers/intern/MOD_build.c
source/blender/modifiers/intern/MOD_collision.c
source/blender/modifiers/intern/MOD_explode.c
source/blender/modifiers/intern/MOD_wave.c
source/blender/render/intern/include/render_types.h
source/blender/render/intern/source/convertblender.c
source/blender/render/intern/source/pipeline.c
source/blender/render/intern/source/pointdensity.c
source/blender/render/intern/source/texture.c