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:
authorArystanbek Dyussenov <arystan.d@gmail.com>2009-08-19 13:04:49 +0400
committerArystanbek Dyussenov <arystan.d@gmail.com>2009-08-19 13:04:49 +0400
commit7c786e28c4965fc7314d7a2a3521f41f9b562726 (patch)
tree68fc6352398e2fb1dba9bf0272e985abf9d176a0 /source/blender/makesdna/DNA_object_types.h
parent09042ce9a507b7f9ea36a63e60bbda6266541579 (diff)
parent680f88017fda17582ac5b4c7e1b3afecbb56b2f8 (diff)
Merge with 2.5 -r 22173:22620.
Diffstat (limited to 'source/blender/makesdna/DNA_object_types.h')
-rw-r--r--source/blender/makesdna/DNA_object_types.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_object_types.h b/source/blender/makesdna/DNA_object_types.h
index 66b4cb45c67..bbc19d69966 100644
--- a/source/blender/makesdna/DNA_object_types.h
+++ b/source/blender/makesdna/DNA_object_types.h
@@ -53,6 +53,7 @@ struct SoftBody;
struct FluidsimSettings;
struct ParticleSystem;
struct DerivedMesh;
+struct SculptSession;
typedef struct bDeformGroup {
struct bDeformGroup *next, *prev;
@@ -91,6 +92,8 @@ typedef struct BoundBox {
typedef struct Object {
ID id;
struct AnimData *adt; /* animation data (must be immediately after id for utilities to use it) */
+
+ struct SculptSession *sculpt;
short type, partype;
int par1, par2, par3; /* can be vertexnrs */
@@ -113,6 +116,9 @@ typedef struct Object {
ListBase defbase;
ListBase modifiers; /* list of ModifierData structures */
+ /* For now just a flag for sculpt mode, eventually we make the other modes local too */
+ int mode, pad2;
+
/* materials */
struct Material **mat; /* material slots */
char *matbits; /* 1 if material linked to object */
@@ -227,7 +233,8 @@ typedef struct Object {
int lastDataMask; /* the custom data layer mask that was last used to calculate derivedDeform and derivedFinal */
unsigned int state; /* bit masks of game controllers that are active */
unsigned int init_state; /* bit masks of initial state as recorded by the users */
- int pad2;
+
+ int restore_mode; /* Keep track of what mode to return to after edit mode exits */
ListBase gpulamp; /* runtime, for lamps only */
ListBase *duplilist; /* only for internal use by RNA API functions. To get dupli list, use object_duplilist instead */
@@ -404,7 +411,6 @@ extern Object workob;
#define OB_DONE 1024
#define OB_RADIO 2048
#define OB_FROMGROUP 4096
-#define OB_POSEMODE 8192
/* ob->recalc (flag bits!) */
#define OB_RECALC_OB 1
@@ -513,6 +519,16 @@ extern Object workob;
#define OB_LOCK_SCALEZ 256
#define OB_LOCK_SCALE 448
+/* ob->mode */
+#define OB_MODE_OBJECT 0
+#define OB_MODE_EDIT 1
+#define OB_MODE_SCULPT 2
+#define OB_MODE_VERTEX_PAINT 4
+#define OB_MODE_WEIGHT_PAINT 8
+#define OB_MODE_TEXTURE_PAINT 16
+#define OB_MODE_PARTICLE_EDIT 32
+#define OB_MODE_POSE 64
+
/* ob->softflag in DNA_object_force.h */
#ifdef __cplusplus