diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-14 12:28:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-14 12:28:27 +0400 |
commit | 1fe21f29ec9134175aeb6ba9bf4bf3ddf9753e89 (patch) | |
tree | 1b204e2544a333ebae11188991d9ef03a0d9eca0 /source/blender/blenlib/BLI_utildefines.h | |
parent | cd33e7f1b461790511591e39c08dab02afa22fe8 (diff) |
utility function for calculating smooth groups from sharp edges: BKE_mesh_calc_smoothgroups
Diffstat (limited to 'source/blender/blenlib/BLI_utildefines.h')
-rw-r--r-- | source/blender/blenlib/BLI_utildefines.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h index b49333fbb3c..224d02163cb 100644 --- a/source/blender/blenlib/BLI_utildefines.h +++ b/source/blender/blenlib/BLI_utildefines.h @@ -263,7 +263,8 @@ #define STACK_PUSH(stack, val) (void)((stack)[(_##stack##_index)++] = val) #define STACK_PUSH_RET(stack) ((void)stack, ((stack)[(_##stack##_index)++])) #define STACK_PUSH_RET_PTR(stack) ((void)stack, &((stack)[(_##stack##_index)++])) -#define STACK_POP(stack) ((_##stack##_index) ? ((stack)[--(_##stack##_index)]) : NULL) +#define STACK_POP(stack) ((_##stack##_index) ? ((stack)[--(_##stack##_index)]) : NULL) +#define STACK_POP_ELSE(stack, r) ((_##stack##_index) ? ((stack)[--(_##stack##_index)]) : r) #define STACK_FREE(stack) ((void)stack) /* array helpers */ |