Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_object_types.h
| Show First 20 Lines • Show All 257 Lines • ▼ Show 20 Lines | typedef struct Object { | ||||
| ListBase constraints; /* object constraints */ | ListBase constraints; /* object constraints */ | ||||
| ListBase nlastrips DNA_DEPRECATED; // XXX deprecated... old animation system | ListBase nlastrips DNA_DEPRECATED; // XXX deprecated... old animation system | ||||
| ListBase hooks DNA_DEPRECATED; // XXX deprecated... old animation system | ListBase hooks DNA_DEPRECATED; // XXX deprecated... old animation system | ||||
| ListBase particlesystem; /* particle systems */ | ListBase particlesystem; /* particle systems */ | ||||
| struct PartDeflect *pd; /* particle deflector/attractor/collision data */ | struct PartDeflect *pd; /* particle deflector/attractor/collision data */ | ||||
| struct SoftBody *soft; /* if exists, saved in file */ | struct SoftBody *soft; /* if exists, saved in file */ | ||||
| struct Group *dup_group; /* object duplicator for group */ | struct Collection *dup_group; /* object duplicator for group */ | ||||
| void *pad10; | void *pad10; | ||||
| char pad4; | char pad4; | ||||
| char shapeflag; /* flag for pinning */ | char shapeflag; /* flag for pinning */ | ||||
| short shapenr; /* current shape key for menu or pinned */ | short shapenr; /* current shape key for menu or pinned */ | ||||
| float smoothresh; /* smoothresh is phong interpolation ray_shadow correction in render */ | float smoothresh; /* smoothresh is phong interpolation ray_shadow correction in render */ | ||||
| struct FluidsimSettings *fluidsimSettings; /* if fluidsim enabled, store additional settings */ | struct FluidsimSettings *fluidsimSettings; /* if fluidsim enabled, store additional settings */ | ||||
| ▲ Show 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | |||||
| /* flags 1 and 2 were unused or relics from past features */ | /* flags 1 and 2 were unused or relics from past features */ | ||||
| enum { | enum { | ||||
| OB_NEG_SCALE = 1 << 2, | OB_NEG_SCALE = 1 << 2, | ||||
| OB_DUPLIFRAMES = 1 << 3, | OB_DUPLIFRAMES = 1 << 3, | ||||
| OB_DUPLIVERTS = 1 << 4, | OB_DUPLIVERTS = 1 << 4, | ||||
| OB_DUPLIROT = 1 << 5, | OB_DUPLIROT = 1 << 5, | ||||
| OB_DUPLINOSPEED = 1 << 6, | OB_DUPLINOSPEED = 1 << 6, | ||||
| OB_DUPLICALCDERIVED = 1 << 7, /* runtime, calculate derivedmesh for dupli before it's used */ | OB_DUPLICALCDERIVED = 1 << 7, /* runtime, calculate derivedmesh for dupli before it's used */ | ||||
| OB_DUPLIGROUP = 1 << 8, | OB_DUPLICOLLECTION = 1 << 8, | ||||
| OB_DUPLIFACES = 1 << 9, | OB_DUPLIFACES = 1 << 9, | ||||
| OB_DUPLIFACES_SCALE = 1 << 10, | OB_DUPLIFACES_SCALE = 1 << 10, | ||||
| OB_DUPLIPARTS = 1 << 11, | OB_DUPLIPARTS = 1 << 11, | ||||
| OB_RENDER_DUPLI = 1 << 12, | OB_RENDER_DUPLI = 1 << 12, | ||||
| OB_NO_CONSTRAINTS = 1 << 13, /* runtime constraints disable */ | OB_NO_CONSTRAINTS = 1 << 13, /* runtime constraints disable */ | ||||
| OB_NO_PSYS_UPDATE = 1 << 14, /* hack to work around particle issue */ | OB_NO_PSYS_UPDATE = 1 << 14, /* hack to work around particle issue */ | ||||
| OB_DUPLI = OB_DUPLIFRAMES | OB_DUPLIVERTS | OB_DUPLIGROUP | OB_DUPLIFACES | OB_DUPLIPARTS, | OB_DUPLI = OB_DUPLIFRAMES | OB_DUPLIVERTS | OB_DUPLICOLLECTION | OB_DUPLIFACES | OB_DUPLIPARTS, | ||||
| }; | }; | ||||
| /* (short) trackflag / upflag */ | /* (short) trackflag / upflag */ | ||||
| enum { | enum { | ||||
| OB_POSX = 0, | OB_POSX = 0, | ||||
| OB_POSY = 1, | OB_POSY = 1, | ||||
| OB_POSZ = 2, | OB_POSZ = 2, | ||||
| OB_NEGX = 3, | OB_NEGX = 3, | ||||
| ▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | |||||
| /* #define BA_FROMSET (1 << 7) */ /*UNUSED*/ | /* #define BA_FROMSET (1 << 7) */ /*UNUSED*/ | ||||
| #define BA_TRANSFORM_CHILD (1 << 8) /* child of a transformed object */ | #define BA_TRANSFORM_CHILD (1 << 8) /* child of a transformed object */ | ||||
| #define BA_TRANSFORM_PARENT (1 << 13) /* parent of a transformed object */ | #define BA_TRANSFORM_PARENT (1 << 13) /* parent of a transformed object */ | ||||
| #define OB_FROMDUPLI (1 << 9) | #define OB_FROMDUPLI (1 << 9) | ||||
| #define OB_DONE (1 << 10) /* unknown state, clear before use */ | #define OB_DONE (1 << 10) /* unknown state, clear before use */ | ||||
| /* #define OB_RADIO (1 << 11) */ /* deprecated */ | /* #define OB_RADIO (1 << 11) */ /* deprecated */ | ||||
| #define OB_FROMGROUP (1 << 12) | /* #define OB_FROMGROUP (1 << 12) */ /* deprecated */ | ||||
| /* WARNING - when adding flags check on PSYS_RECALC */ | /* WARNING - when adding flags check on PSYS_RECALC */ | ||||
| /* ob->recalc (flag bits!) */ | /* ob->recalc (flag bits!) */ | ||||
| enum { | enum { | ||||
| OB_RECALC_OB = 1 << 0, | OB_RECALC_OB = 1 << 0, | ||||
| OB_RECALC_DATA = 1 << 1, | OB_RECALC_DATA = 1 << 1, | ||||
| /* time flag is set when time changes need recalc, so baked systems can ignore it */ | /* time flag is set when time changes need recalc, so baked systems can ignore it */ | ||||
| OB_RECALC_TIME = 1 << 2, | OB_RECALC_TIME = 1 << 2, | ||||
| ▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines | |||||