Blender V5.0
DNA_nla_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_listBase.h"
12
13struct Object;
14struct bAction;
15
17typedef struct bActionModifier {
19 short type, flag;
20 char channel[32];
21
22 /* noise modifier */
24 short channels;
25
26 /* path deform modifier */
28 struct Object *ob;
30
31// /* NLA-Modifier Types (UNUSED) */
32// enum {
33// ACTSTRIP_MOD_DEFORM = 0,
34// ACTSTRIP_MOD_NOISE = 1,
35// };
36
37typedef struct bActionStrip {
39 short flag, mode;
43 short curmod;
44
46 struct bAction *act;
48 struct Object *object;
50 float start, end;
54 float actoffs;
56 float stridelen;
58 float repeat;
60 float scale;
61
64
66 char stridechannel[32];
68 char offs_bone[32];
69
73
75enum {
78};
79
81typedef enum eActStrip_Flag {
82 ACTSTRIP_SELECT = (1 << 0),
84 /* Not implemented. Is not used anywhere */
85 /* ACTSTRIP_BLENDTONEXT = (1 << 2), */ /* UNUSED */
87 ACTSTRIP_ACTIVE = (1 << 4),
89 ACTSTRIP_MUTE = (1 << 6),
90 /* This has yet to be implemented. To indicate that a strip should be played backwards */
91 ACTSTRIP_REVERSE = (1 << 7),
These structs are the foundation for all linked lists in the library system.
@ ACTSTRIPMODE_ADD
@ ACTSTRIPMODE_BLEND
eActStrip_Flag
@ ACTSTRIP_ACTIVE
@ ACTSTRIP_MUTE
@ ACTSTRIP_SELECT
@ ACTSTRIP_REVERSE
@ ACTSTRIP_LOCK_ACTION
@ ACTSTRIP_HOLDLASTFRAME
@ ACTSTRIP_AUTO_BLENDS
@ ACTSTRIP_USESTRIDE
struct Object * ob
struct bActionModifier * next
struct bActionModifier * prev
struct Object * object
struct bAction * act
char stridechannel[32]
struct bActionStrip * next
char offs_bone[32]
ListBase modifiers
struct bActionStrip * prev