Blender V5.0
DNA_action_defaults.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <math.h>
12
13/* clang-format off */
14
15/* -------------------------------------------------------------------- */
18
19/* The last_slot_handle is set to a high value to disambiguate slot handles from
20 * array indices.
21 *
22 * This particular value was obtained by taking the 31 most-significant bits of
23 * the TentHash value (Nathan's hash function) for the string "Quercus&Laksa"
24 * (Sybren's cats). */
25#define DNA_DEFAULT_ACTION_LAST_SLOT_HANDLE 0x37627bf5
26
27#define _DNA_DEFAULT_bAction \
28 { \
29 .last_slot_handle = DNA_DEFAULT_ACTION_LAST_SLOT_HANDLE, \
30 }
31
33
34/* -------------------------------------------------------------------- */
37
38#define _DNA_DEFAULT_ActionLayer \
39 { \
40 .influence = 1.0f, \
41 }
42
44
45/* -------------------------------------------------------------------- */
48
49#define _DNA_DEFAULT_ActionStrip \
50 { \
51 .data_index = -1, \
52 .frame_start = -INFINITY, \
53 .frame_end = INFINITY, \
54 }
55
57
58/* clang-format on */