Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-05-04 03:15:01 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-05-04 03:15:01 +0400
commit48ead2736643cf0327b9472cfd05042a58f9d9b0 (patch)
treed966adce993fd14472a4ff2a79372da305273fc7 /source/blender/makesdna
parent5da2135eef39ac042a8c4babcac7be375e6903d2 (diff)
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.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_tracking_types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_tracking_types.h b/source/blender/makesdna/DNA_tracking_types.h
index 4e2b3c46aa4..6bf059c7ecb 100644
--- a/source/blender/makesdna/DNA_tracking_types.h
+++ b/source/blender/makesdna/DNA_tracking_types.h
@@ -205,10 +205,12 @@ typedef struct MovieTrackingDopesheetChannel {
} MovieTrackingDopesheetChannel;
typedef struct MovieTrackingDopesheet {
+ int ok, pad; /* flag if dopesheet information is still relevant */
+
ListBase channels;
int tot_channel;
- short sort_order; /* order in which tracks are stored */
+ short sort_method; /* method to be used to sort tracks */
short sort_inverse; /* order of tracks is inverted */
} MovieTrackingDopesheet;