diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-11-05 13:27:52 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-11-05 13:36:50 +0300 |
commit | 035026f48a2766cd5793f92062c7268bfb02a5c6 (patch) | |
tree | 4a8bc6831ee9a4b7c5d233fe02a5bb7e2a6c4659 /source/blender/makesdna | |
parent | 1073c6ae8e2337ef95eca69b201ddfca44db8415 (diff) |
Code cleanup: Replace magic number with verbose name for math node operations
Should be no functional changes, just much less cryptic code.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_node_types.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h index 656e24d57b1..02c451e8549 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -988,6 +988,29 @@ typedef struct NodeSunBeams { /* math node clamp */ #define SHD_MATH_CLAMP 1 +/* Math node operation/ */ +enum { + NODE_MATH_ADD = 0, + NODE_MATH_SUB = 1, + NODE_MATH_MUL = 2, + NODE_MATH_DIVIDE = 3, + NODE_MATH_SIN = 4, + NODE_MATH_COS = 5, + NODE_MATH_TAN = 6, + NODE_MATH_ASIN = 7, + NODE_MATH_ACOS = 8, + NODE_MATH_ATAN = 9, + NODE_MATH_POW = 10, + NODE_MATH_LOG = 11, + NODE_MATH_MIN = 12, + NODE_MATH_MAX = 13, + NODE_MATH_ROUND = 14, + NODE_MATH_LESS = 15, + NODE_MATH_GREATER = 16, + NODE_MATH_MOD = 17, + NODE_MATH_ABS = 18, +}; + /* mix rgb node flags */ #define SHD_MIXRGB_USE_ALPHA 1 #define SHD_MIXRGB_CLAMP 2 |