diff options
author | YimingWu <xp8110@outlook.com> | 2019-09-04 06:04:59 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2019-09-04 06:04:59 +0300 |
commit | 628fe8b635dcdccca296d0e782da362b63738731 (patch) | |
tree | fc2cfa11b9dd602df4fa8bc82dacfab78832cc63 /source/blender/makesdna | |
parent | 72c0abbd28965400e81e3deb3d270b9ee3913174 (diff) |
LANPR: Use flags for struct LANPR_LineLayer.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_lanpr_types.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/source/blender/makesdna/DNA_lanpr_types.h b/source/blender/makesdna/DNA_lanpr_types.h index 6b2196b5544..3155153795c 100644 --- a/source/blender/makesdna/DNA_lanpr_types.h +++ b/source/blender/makesdna/DNA_lanpr_types.h @@ -89,12 +89,18 @@ typedef struct LANPR_LineType { float color[4]; } LANPR_LineType; +typedef enum LANPR_LineLayerFlags { + LANPR_LINE_LAYER_USE_SAME_STYLE = (1<<0), + LANPR_LINE_LAYER_USE_MULTIPLE_LEVELS = (1<<1), + LANPR_LINE_LAYER_NORMAL_ENABLED = (1<<2), + LANPR_LINE_LAYER_NORMAL_INVERSE = (1<<3), +} LANPR_LineLayerFlags; + typedef struct LANPR_LineLayer { struct LANPR_LineLayer *next, *prev; - int type; - - int use_multiple_levels; + int flags; + int _pad1; int qi_begin; int qi_end; @@ -111,12 +117,7 @@ typedef struct LANPR_LineLayer { float color[4]; - int use_same_style; - - int _pad1; - int normal_enabled; int normal_mode; - int normal_effect_inverse; float normal_ramp_begin; float normal_ramp_end; float normal_thickness_start; |