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:
authorJoshua Leung <aligorith@gmail.com>2009-07-07 09:41:59 +0400
committerJoshua Leung <aligorith@gmail.com>2009-07-07 09:41:59 +0400
commit2edef129be18fa8cb7d9c33b8bd76dc60d9e1dcf (patch)
tree8a4c2ee2b23eb85780dd3fe06824f1dfc7abb29a /source/blender/editors/transform/transform.h
parent905b1380054f42fe30b19fb37861057af4760e32 (diff)
NLA SoC: Transform Code for NLA-Strips recoded (still buggy)
Recoded the Transform code for NLA-Strips so that they can now be moved between strips and will not get truncated when they get moved into other non-moving strips. Todos: * The current code for moving strips between tracks is buggy (only goes up, and has a tendency to move up without being told to) * Auto-snapping doesn't work yet...
Diffstat (limited to 'source/blender/editors/transform/transform.h')
-rw-r--r--source/blender/editors/transform/transform.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h
index 1b35701a753..65edae6fca8 100644
--- a/source/blender/editors/transform/transform.h
+++ b/source/blender/editors/transform/transform.h
@@ -163,9 +163,17 @@ typedef struct TransDataSeq {
/* for NLA transform (stored in td->extra pointer) */
typedef struct TransDataNla {
- struct NlaStrip *strip; /* NLA-strip that handle belongs to */
- float val; /* value for the handle that the transform tools write to */
- int handle; /* handle-index, 0 for start, 1 for end */
+ struct NlaTrack *oldTrack; /* Original NLA-Track that the strip belongs to */
+ struct NlaTrack *nlt; /* Current NLA-Track that the strip belongs to */
+
+ struct NlaStrip *strip; /* NLA-strip this data represents */
+
+ /* dummy values for transform to write in - must have 3 elements... */
+ float h1[3]; /* start handle */
+ float h2[3]; /* end handle */
+
+ int trackIndex; /* index of track that strip is currently in */
+ int handle; /* handle-index: 0 for dummy entry, -1 for start, 1 for end, 2 for both ends */
} TransDataNla;
typedef struct TransData {