diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-02-28 20:03:48 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-02-28 22:47:50 +0300 |
commit | 7d0fcaa69a64eed8a37598213b120582f12fb437 (patch) | |
tree | c41d26ad89de03e2916f518f663ca9f16cc1f814 /source/blender/makesdna | |
parent | f95f1a47b4dcf3ce2a41362eb1f1655b9e6f545a (diff) |
'Fix' T61942: Triangulate modifier breaks custom normals.
Not a bug, but supporting preservation of custom normals in that
specific modifier makes sense, in game pipeline contexts.
Could also ease work of IO add-ons that want to export
triangulated geometry...
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_modifier_types.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h index 4139b5eb91c..5aec9b95797 100644 --- a/source/blender/makesdna/DNA_modifier_types.h +++ b/source/blender/makesdna/DNA_modifier_types.h @@ -1552,11 +1552,13 @@ typedef struct TriangulateModifierData { char _pad[4]; } TriangulateModifierData; -#ifdef DNA_DEPRECATED +/* TriangulateModifierData.flag */ enum { - MOD_TRIANGULATE_BEAUTY = (1 << 0), /* deprecated */ -}; +#ifdef DNA_DEPRECATED + MOD_TRIANGULATE_BEAUTY = (1 << 0), /* deprecated */ #endif + MOD_TRIANGULATE_KEEP_CUSTOMLOOP_NORMALS = 1 << 1, +}; /* Triangulate methods - NGons */ enum { |