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:
Diffstat (limited to 'source/blender/editors/transform/transform_convert_nla.c')
-rw-r--r--source/blender/editors/transform/transform_convert_nla.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_convert_nla.c b/source/blender/editors/transform/transform_convert_nla.c
index 1a38d01a81c..6ee2e191e69 100644
--- a/source/blender/editors/transform/transform_convert_nla.c
+++ b/source/blender/editors/transform/transform_convert_nla.c
@@ -41,6 +41,31 @@
#include "transform.h"
#include "transform_convert.h"
+/** Used for NLA transform (stored in #TransData.extra pointer). */
+typedef struct TransDataNla {
+ /** ID-block NLA-data is attached to. */
+ ID *id;
+
+ /** Original NLA-Track that the strip belongs to. */
+ struct NlaTrack *oldTrack;
+ /** Current NLA-Track that the strip belongs to. */
+ struct NlaTrack *nlt;
+
+ /** NLA-strip this data represents. */
+ struct NlaStrip *strip;
+
+ /* dummy values for transform to write in - must have 3 elements... */
+ /** start handle. */
+ float h1[3];
+ /** end handle. */
+ float h2[3];
+
+ /** index of track that strip is currently in. */
+ int trackIndex;
+ /** handle-index: 0 for dummy entry, -1 for start, 1 for end, 2 for both ends. */
+ int handle;
+} TransDataNla;
+
/* -------------------------------------------------------------------- */
/** \name NLA Transform Creation
*