Blender Git Loki
Git Commits -> Revision 3378782
Revision 3378782 by Alexander Gavrilov (master) September 26, 2018, 13:52 (GMT) |
Implement additional modes for Shrinkwrap to a surface. In addition to the original map to surface and Keep Above Surface, add modes that only affect vertices that are inside or outside the object. This is inspired by the Limit Distance constraint, and can be useful for crude collision detection in rigs. The inside/outside test works based on face normals and may not be completely reliable near 90 degree or sharper angles in the target. Reviewers: campbellbarton, mont29 Differential Revision: https://developer.blender.org/D3717 |
Commit Details:
Full Hash: 3378782eeeb55a6ed64dba479e37f8b98fab63b1
Parent Commit: 310f1b0
Lines Changed: +169, -31
11 Modified Paths:
/release/scripts/startup/bl_ui/properties_constraint.py (+3, -0) (Diff)
/release/scripts/startup/bl_ui/properties_data_modifier.py (+3, -3) (Diff)
/source/blender/blenkernel/BKE_shrinkwrap.h (+5, -0) (Diff)
/source/blender/blenkernel/intern/constraint.c (+18, -6) (Diff)
/source/blender/blenkernel/intern/shrinkwrap.c (+74, -15) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+16, -0) (Diff)
/source/blender/makesdna/DNA_constraint_types.h (+2, -1) (Diff)
/source/blender/makesdna/DNA_modifier_types.h (+17, -1) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+6, -0) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+24, -5) (Diff)
/source/blender/makesrna/RNA_enum_types.h (+1, -0) (Diff)
/release/scripts/startup/bl_ui/properties_data_modifier.py (+3, -3) (Diff)
/source/blender/blenkernel/BKE_shrinkwrap.h (+5, -0) (Diff)
/source/blender/blenkernel/intern/constraint.c (+18, -6) (Diff)
/source/blender/blenkernel/intern/shrinkwrap.c (+74, -15) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+16, -0) (Diff)
/source/blender/makesdna/DNA_constraint_types.h (+2, -1) (Diff)
/source/blender/makesdna/DNA_modifier_types.h (+17, -1) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+6, -0) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+24, -5) (Diff)
/source/blender/makesrna/RNA_enum_types.h (+1, -0) (Diff)