Blender V5.3
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 "BLI_enum_flags.hh"
12
13#include "DNA_listBase.h"
14
15namespace blender {
16
17struct Object;
18struct bAction;
19
25
27enum eActStrip_Flag : short {
28 ACTSTRIP_SELECT = (1 << 0),
30 /* Not implemented. Is not used anywhere */
31 /* ACTSTRIP_BLENDTONEXT = (1 << 2), */ /* UNUSED */
33 ACTSTRIP_ACTIVE = (1 << 4),
35 ACTSTRIP_MUTE = (1 << 6),
36 /* This has yet to be implemented. To indicate that a strip should be played backwards */
37 ACTSTRIP_REVERSE = (1 << 7),
39};
41
42
44 struct bActionModifier *next = nullptr, *prev = nullptr;
45 short type = 0, flag = 0;
46 char channel[32] = "";
47
48 /* noise modifier */
49 float noisesize = 0, turbul = 0;
50 short channels = 0;
51
52 /* path deform modifier */
53 short no_rot_axis = 0;
54 struct Object *ob = nullptr;
55};
56
57// /* NLA-Modifier Types (UNUSED) */
58// enum {
59// ACTSTRIP_MOD_DEFORM = 0,
60// ACTSTRIP_MOD_NOISE = 1,
61// };
62
64 struct bActionStrip *next = nullptr, *prev = nullptr;
68 short stride_axis = 0;
70 short curmod = 0;
71
73 struct bAction *act = nullptr;
75 struct Object *object = nullptr;
77 float start = 0, end = 0;
79 float actstart = 0, actend = 0;
81 float actoffs = 0;
83 float stridelen = 0;
85 float repeat = 0;
87 float scale = 0;
88
90 float blendin = 0, blendout = 0;
91
93 char stridechannel[32] = "";
95 char offs_bone[32] = "";
96
98 ListBaseT<bActionModifier> modifiers = {nullptr, nullptr};
99};
100
101} // namespace blender
#define ENUM_OPERATORS(_enum_type)
These structs are the foundation for all linked lists in the library system.
BMesh Iterators.
@ ACTSTRIPMODE_ADD
@ ACTSTRIPMODE_BLEND
@ ACTSTRIP_LOCK_ACTION
@ ACTSTRIP_SELECT
@ ACTSTRIP_USESTRIDE
@ ACTSTRIP_REVERSE
@ ACTSTRIP_ACTIVE
@ ACTSTRIP_AUTO_BLENDS
@ ACTSTRIP_HOLDLASTFRAME
struct bActionModifier * next
struct bActionModifier * prev
struct bActionStrip * next
struct bAction * act
ListBaseT< bActionModifier > modifiers
eActStrip_Mode mode
struct bActionStrip * prev
eActStrip_Flag flag