2 * ***** BEGIN GPL LICENSE BLOCK *****
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
19 * All rights reserved.
21 * The Original Code is: all of this file.
23 * Contributor(s): none yet.
25 * ***** END GPL LICENSE BLOCK *****
27 #ifndef __DNA_KEY_TYPES_H__
28 #define __DNA_KEY_TYPES_H__
30 /** \file DNA_key_types.h
35 #include "DNA_listBase.h"
41 typedef struct KeyBlock {
42 struct KeyBlock *next, *prev;
46 short type, adrcode, relative, flag; /* relative == 0 means first key is reference */
51 char name[64]; /* MAX_NAME */
52 char vgroup[64]; /* MAX_VGROUP_NAME */
63 struct AnimData *adt; /* animation data (must be immediately after id for utilities to use it) */
66 char elemstr[64]; /* MAX_NAME */
68 float curval DNA_DEPRECATED;
71 struct Ipo *ipo DNA_DEPRECATED; /* old animation system, deprecated for 2.5 */
79 /*can never be 0, this is used for detecting old data*/
80 int uidgen; /*current free uid for keyblocks*/
83 /* **************** KEY ********************* */
87 #define KEY_RELATIVE 1
90 #define KEY_DS_EXPAND 1
94 #define KEY_CARDINAL 1
98 #define KEYBLOCK_MUTE (1<<0)
99 #define KEYBLOCK_SEL (1<<1)
100 #define KEYBLOCK_LOCKED (1<<2)
101 #define KEYBLOCK_MISSING (1<<3) /*temporary flag*/