diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2018-07-08 13:47:26 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2018-10-01 15:47:03 +0300 |
commit | e38a0b3748683a35601c256053f716ad8b57002f (patch) | |
tree | 940e008c1259316cf58921538b96b208fce84da0 /release/scripts/startup/bl_ui/properties_constraint.py | |
parent | be0e58d980d963c60869c412ada86641baaa2e48 (diff) |
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
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_constraint.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_constraint.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_constraint.py b/release/scripts/startup/bl_ui/properties_constraint.py index c76f3255d97..ea3b5f000ec 100644 --- a/release/scripts/startup/bl_ui/properties_constraint.py +++ b/release/scripts/startup/bl_ui/properties_constraint.py @@ -758,6 +758,15 @@ class ConstraintButtonsPanel: split.label(text="Axis Space:") rowsub = split.row() rowsub.prop(con, "project_axis_space", text="") + split = layout.split(factor=0.4) + split.label(text="Face Culling:") + rowsub = split.row() + rowsub.prop(con, "cull_face", expand=True) + row = layout.row() + row.prop(con, "use_project_opposite") + rowsub = row.row() + rowsub.active = con.use_project_opposite and con.cull_face != 'OFF' + rowsub.prop(con, "use_invert_cull") layout.prop(con, "project_limit") def DAMPED_TRACK(self, context, layout, con): |