Camera tracking: switch dopesheet information to lazy calculation
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 3 May 2012 23:15:01 +0000 (23:15 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 3 May 2012 23:15:01 +0000 (23:15 +0000)
commit48ead2736643cf0327b9472cfd05042a58f9d9b0
treed966adce993fd14472a4ff2a79372da305273fc7
parent5da2135eef39ac042a8c4babcac7be375e6903d2
Camera tracking: switch dopesheet information to lazy calculation

All operators which changes tracking data now just tags dopsheet as outdated,
actual re-calculaiton of happens only when this information is actually needed
(like on dopesheet draw).

This makes things a bit faster when there's no dopesheet visible in current
screen and also makes it much easier to update dopesheet using dependency
graph.

Also renamed dopesheet_sort_order to dopesheet_sort_method in rna and internal
stuff which makes much more sense and also correlated with naming in
file browser.
13 files changed:
release/scripts/startup/bl_ui/space_clip.py
source/blender/blenkernel/BKE_tracking.h
source/blender/blenkernel/intern/depsgraph.c
source/blender/blenkernel/intern/tracking.c
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/writefile.c
source/blender/editors/include/ED_clip.h
source/blender/editors/space_clip/clip_editor.c
source/blender/editors/space_clip/clip_utils.c
source/blender/editors/space_clip/space_clip.c
source/blender/editors/space_clip/tracking_ops.c
source/blender/makesdna/DNA_tracking_types.h
source/blender/makesrna/intern/rna_space.c