Code cleanup: replace magic constants with more verbose bitnames
This commit is contained in:
parent
290e1fc528
commit
9800ed5f6d
Notes:
blender-bot
2023-02-14 09:33:14 +01:00
Referenced by issue #43471, Can't dynamically set particle birth time any more
|
@ -564,7 +564,7 @@ typedef struct ParticleSystem {
|
|||
|
||||
/* mapto */
|
||||
/* init */
|
||||
#define PAMAP_INIT 15
|
||||
#define PAMAP_INIT (PAMAP_TIME | PAMAP_LIFE | PAMAP_DENS | PAMAP_SIZE)
|
||||
#define PAMAP_TIME (1<<0) /* emission time */
|
||||
#define PAMAP_LIFE (1<<1) /* life time */
|
||||
#define PAMAP_DENS (1<<2) /* density */
|
||||
|
@ -572,12 +572,12 @@ typedef struct ParticleSystem {
|
|||
/* reset */
|
||||
#define PAMAP_IVEL (1<<5) /* initial velocity */
|
||||
/* physics */
|
||||
#define PAMAP_PHYSICS 3136
|
||||
#define PAMAP_PHYSICS (PAMAP_FIELD | PAMAP_GRAVITY | PAMAP_DAMP)
|
||||
#define PAMAP_FIELD (1<<6) /* force fields */
|
||||
#define PAMAP_GRAVITY (1<<10)
|
||||
#define PAMAP_DAMP (1<<11)
|
||||
/* children */
|
||||
#define PAMAP_CHILD 912
|
||||
#define PAMAP_CHILD (PAMAP_CLUMP | PAMAP_KINK | PAMAP_ROUGH | PAMAP_LENGTH)
|
||||
#define PAMAP_CLUMP (1<<7)
|
||||
#define PAMAP_KINK (1<<8)
|
||||
#define PAMAP_ROUGH (1<<9)
|
||||
|
|
Loading…
Reference in New Issue