From e38a0b3748683a35601c256053f716ad8b57002f Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Sun, 8 Jul 2018 13:47:26 +0300 Subject: Shrinkwrap Constraint: implement projection features from the modifier. Allow raycasting in two directions and culling front or back faces. Also implement a new Invert Cull option in both constraint and modifier that can be used to aim for faces aligned with the project axis direction when raycasting both ways. Reviewers: mont29 Differential Revision: https://developer.blender.org/D3737 --- source/blender/makesdna/DNA_modifier_types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/makesdna/DNA_modifier_types.h') diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h index 811373e626c..9f7b09b4a18 100644 --- a/source/blender/makesdna/DNA_modifier_types.h +++ b/source/blender/makesdna/DNA_modifier_types.h @@ -920,8 +920,11 @@ enum { #endif MOD_SHRINKWRAP_INVERT_VGROUP = (1 << 6), + MOD_SHRINKWRAP_INVERT_CULL_TARGET = (1 << 7), }; +#define MOD_SHRINKWRAP_CULL_TARGET_MASK (MOD_SHRINKWRAP_CULL_TARGET_FRONTFACE | MOD_SHRINKWRAP_CULL_TARGET_BACKFACE) + /* Shrinkwrap->projAxis */ enum { MOD_SHRINKWRAP_PROJECT_OVER_NORMAL = 0, /* projection over normal is used if no axis is selected */ -- cgit v1.2.3