add a distance limit to the shrinkwrap modifiers project mode,

it was problematic for vertices to fire rays out and hit some unrelated-far-off geometry which is often not what users want.
This commit is contained in:
Campbell Barton
2012-11-09 04:20:17 +00:00
parent 11a5c909f8
commit 56ae13be99
4 changed files with 20 additions and 4 deletions

View File

@@ -625,6 +625,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
col.prop(md, "wrap_method", text="")
if md.wrap_method == 'PROJECT':
col.prop(md, "project_limit", text="Limit")
split = layout.split(percentage=0.25)
col = split.column()
@@ -642,8 +643,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
col.label(text="Cull Faces:")
col.prop(md, "cull_face", expand=True)
layout.label(text="Auxiliary Target:")
layout.prop(md, "auxiliary_target", text="")
layout.prop(md, "auxiliary_target")
elif md.wrap_method == 'NEAREST_SURFACEPOINT':
layout.prop(md, "use_keep_above_surface")