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:
authorMatt Ebb <matt@mke3.net>2010-06-22 06:29:52 +0400
committerMatt Ebb <matt@mke3.net>2010-06-22 06:29:52 +0400
commit1d6c2f214be060f54457d65e8afdf7df8fe93b92 (patch)
tree1a73ba062b1b8575f424c15f332d75605f88a8b7 /source/blender/makesdna
parent6a1d8d8e04f315355d46d9abf41762945f9c47fd (diff)
Timeline addition: Display cached frames
This started off doing pointcache debugging but it's also very useful for users too. Previously it was very hard to see the state of the system when you're working caches such as physics point cache - is it baked? which frames are cached? is it out of date? Now, for better feedback, cached frames are drawn for the active object at the bottom of the timeline - a semitransparent area shows the entire cache extents, and more solid blocks on top show the frames that are cached. Darker versions indicate it's using a disk cache. It can be disabled in general in the timeline View -> Caches menu, or by each individual system that can be shown. There's still a bit to do on this, behaviour needs to be clarified still eg. deciding what shows when it's out of date, or when it's been played back but not cached, etc. etc. Part of this is due to a lack of definition in the point cache system itself, so we should try and clean up/clarify this behaviour and what it means to users, at the same time. Also would be interested in extending this to other caches such as fluid cache, sequencer memory cache etc. in the future, too.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_space_types.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h
index e59cad09d6c..ba9d0380c9f 100644
--- a/source/blender/makesdna/DNA_space_types.h
+++ b/source/blender/makesdna/DNA_space_types.h
@@ -346,6 +346,17 @@ typedef struct SpaceScript {
void *but_refs;
} SpaceScript;
+typedef struct SpaceTimeCache {
+ struct SpaceTimeCache *next, *prev;
+ int type;
+ int flag;
+
+ float *array;
+ int len;
+ int startframe, endframe;
+ int ok;
+} SpaceTimeCache;
+
typedef struct SpaceTime {
SpaceLink *next, *prev;
ListBase regionbase; /* storage of regions for inactive spaces */
@@ -354,6 +365,9 @@ typedef struct SpaceTime {
View2D v2d; /* deprecated, copied to region */
+ ListBase caches;
+ int cache_display, pad;
+
int flag, redraws;
} SpaceTime;
@@ -860,6 +874,13 @@ enum {
#define TIME_CONTINUE_PHYSICS 128
#define TIME_NODES 256
+/* time->cache */
+#define TIME_CACHE_DISPLAY 1
+#define TIME_CACHE_SOFTBODY 2
+#define TIME_CACHE_PARTICLES 4
+#define TIME_CACHE_CLOTH 8
+#define TIME_CACHE_SMOKE 16
+
/* sseq->mainb */
#define SEQ_DRAW_SEQUENCE 0
#define SEQ_DRAW_IMG_IMBUF 1