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:
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_action_types.h3
-rw-r--r--source/blender/makesdna/DNA_image_types.h23
-rw-r--r--source/blender/makesdna/DNA_smoke_types.h14
3 files changed, 26 insertions, 14 deletions
diff --git a/source/blender/makesdna/DNA_action_types.h b/source/blender/makesdna/DNA_action_types.h
index b870a027e5c..c328aedecb6 100644
--- a/source/blender/makesdna/DNA_action_types.h
+++ b/source/blender/makesdna/DNA_action_types.h
@@ -464,7 +464,8 @@ typedef enum eRotationModes {
/* quaternion rotations (default, and for older Blender versions) */
ROT_MODE_QUAT = 0,
/* euler rotations - keep in sync with enum in BLI_math.h */
- ROT_MODE_EUL = 1, /* Blender 'default' (classic) - must be as 1 to sync with BLI_math_rotation.h defines */
+ /** Blender 'default' (classic) - must be as 1 to sync with BLI_math_rotation.h defines */
+ ROT_MODE_EUL = 1,
ROT_MODE_XYZ = 1,
ROT_MODE_XZY = 2,
ROT_MODE_YXZ = 3,
diff --git a/source/blender/makesdna/DNA_image_types.h b/source/blender/makesdna/DNA_image_types.h
index e6efe8f25c9..2ca5856796c 100644
--- a/source/blender/makesdna/DNA_image_types.h
+++ b/source/blender/makesdna/DNA_image_types.h
@@ -185,7 +185,8 @@ enum {
IMA_OLD_PREMUL = (1 << 7),
IMA_FLAG_DEPRECATED_8 = (1 << 8), /* cleared */
IMA_USED_FOR_RENDER = (1 << 9),
- IMA_USER_FRAME_IN_RANGE = (1 << 10), /* for image user, but these flags are mixed */
+ /** For image user, but these flags are mixed. */
+ IMA_USER_FRAME_IN_RANGE = (1 << 10),
IMA_VIEW_AS_RENDER = (1 << 11),
IMA_IGNORE_ALPHA = (1 << 12),
IMA_DEINTERLACE = (1 << 13),
@@ -195,14 +196,18 @@ enum {
};
/* Image.tpageflag */
-#define IMA_TPAGEFLAG_DEPRECATED_0 (1 << 0) /* cleared */
-#define IMA_TPAGEFLAG_DEPRECATED_1 (1 << 1) /* cleared */
-#define IMA_TPAGEFLAG_DEPRECATED_2 (1 << 2) /* cleared */
-#define IMA_MIPMAP_COMPLETE (1 << 3) /* all mipmap levels in OpenGL texture set? */
-#define IMA_TPAGEFLAG_DEPRECATED_4 (1 << 4) /* cleared */
-#define IMA_TPAGEFLAG_DEPRECATED_5 (1 << 5) /* cleared */
-#define IMA_TPAGE_REFRESH (1 << 6)
-#define IMA_GLBIND_IS_DATA (1 << 7) /* opengl image texture bound as non-color data */
+enum {
+ IMA_TPAGEFLAG_DEPRECATED_0 = (1 << 0), /* cleared */
+ IMA_TPAGEFLAG_DEPRECATED_1 = (1 << 1), /* cleared */
+ IMA_TPAGEFLAG_DEPRECATED_2 = (1 << 2), /* cleared */
+ /** All mipmap levels in OpenGL texture set? */
+ IMA_MIPMAP_COMPLETE = (1 << 3),
+ IMA_TPAGEFLAG_DEPRECATED_4 = (1 << 4), /* cleared */
+ IMA_TPAGEFLAG_DEPRECATED_5 = (1 << 5), /* cleared */
+ IMA_TPAGE_REFRESH = (1 << 6),
+ /** OpenGL image texture bound as non-color data. */
+ IMA_GLBIND_IS_DATA = (1 << 7),
+};
/* ima->type and ima->source moved to BKE_image.h, for API */
diff --git a/source/blender/makesdna/DNA_smoke_types.h b/source/blender/makesdna/DNA_smoke_types.h
index cc29ea3705c..a5bea9113c4 100644
--- a/source/blender/makesdna/DNA_smoke_types.h
+++ b/source/blender/makesdna/DNA_smoke_types.h
@@ -283,10 +283,16 @@ typedef struct SmokeDomainSettings {
#define MOD_SMOKE_FLOW_TEXTURE_MAP_UV 1
/* flags */
-#define MOD_SMOKE_FLOW_ABSOLUTE (1<<1) /*old style emission*/
-#define MOD_SMOKE_FLOW_INITVELOCITY (1<<2) /* passes particles speed to the smoke */
-#define MOD_SMOKE_FLOW_TEXTUREEMIT (1<<3) /* use texture to control emission speed */
-#define MOD_SMOKE_FLOW_USE_PART_SIZE (1<<4) /* use specific size for particles instead of closest cell */
+enum {
+ /**old style emission*/
+ MOD_SMOKE_FLOW_ABSOLUTE = (1 << 1),
+ /** passes particles speed to the smoke */
+ MOD_SMOKE_FLOW_INITVELOCITY = (1 << 2),
+ /** use texture to control emission speed */
+ MOD_SMOKE_FLOW_TEXTUREEMIT = (1 << 3),
+ /** use specific size for particles instead of closest cell */
+ MOD_SMOKE_FLOW_USE_PART_SIZE = (1 << 4),
+};
typedef struct SmokeFlowSettings {
/** For fast RNA access. */