From d27ccf990c2b957a10f4676e3153f907829a4b22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Barschkis?= Date: Mon, 16 Dec 2019 15:50:14 +0100 Subject: Mantaflow [Part 6]: Updates in /blender/source A collection of smaller changes that are required in the /blender/source files. A lot of them are also due to variable renaming. Reviewed By: sergey Maniphest Tasks: T59995 Differential Revision: https://developer.blender.org/D3855 --- source/blender/makesdna/DNA_particle_types.h | 36 +++++++++++++++++++++------- 1 file changed, 28 insertions(+), 8 deletions(-) (limited to 'source/blender/makesdna/DNA_particle_types.h') diff --git a/source/blender/makesdna/DNA_particle_types.h b/source/blender/makesdna/DNA_particle_types.h index 4aaa1fe32f6..78f965c327b 100644 --- a/source/blender/makesdna/DNA_particle_types.h +++ b/source/blender/makesdna/DNA_particle_types.h @@ -273,7 +273,7 @@ typedef struct ParticleSettings { struct Collection *instance_collection; struct ListBase instance_weights; - struct Collection *eff_group DNA_DEPRECATED; // deprecated + struct Collection *force_group DNA_DEPRECATED; // deprecated struct Object *instance_object; struct Object *bb_ob; /** Old animation system, deprecated for 2.5. */ @@ -429,13 +429,33 @@ typedef enum eParticleDrawFlag { PART_DRAW_HAIR_GRID = (1 << 18), } eParticleDrawFlag; -/* part->type */ -/* hair is always baked static in object/geometry space */ -/* other types (normal particles) are in global space and not static baked */ -#define PART_EMITTER 0 -//#define PART_REACTOR 1 -#define PART_HAIR 2 -#define PART_FLUID 3 +/* part->type + * Hair is always baked static in object/geometry space. + * Other types (normal particles) are in global space and not static baked. */ +enum { + PART_EMITTER = (1 << 0), + /* REACTOR type currently unused */ + /* PART_REACTOR = (1 << 1), */ + PART_HAIR = (1 << 2), + PART_FLUID = (1 << 3), /* deprecated (belonged to elbeem) */ + PART_FLUID_FLIP = (1 << 4), + PART_FLUID_SPRAY = (1 << 5), + PART_FLUID_BUBBLE = (1 << 6), + PART_FLUID_FOAM = (1 << 7), + PART_FLUID_TRACER = (1 << 8), +}; + +/* Mirroring Mantaflow particle types from particle.h (Mantaflow header). */ +enum { + PARTICLE_TYPE_NONE = (0 << 0), + PARTICLE_TYPE_NEW = (1 << 0), + PARTICLE_TYPE_SPRAY = (1 << 1), + PARTICLE_TYPE_BUBBLE = (1 << 2), + PARTICLE_TYPE_FOAM = (1 << 3), + PARTICLE_TYPE_TRACER = (1 << 4), + PARTICLE_TYPE_DELETE = (1 << 10), + PARTICLE_TYPE_INVALID = (1 << 30), +}; /* part->flag */ #define PART_REACT_STA_END 1 -- cgit v1.2.3