Blender Git Loki

Git Commits -> Revision 18f33f2

Revision 18f33f2 by Pablo Dobarro (master)
May 26, 2020, 18:48 (GMT)
Fix Cloth Brush grab deformation mode

The grab mode was not correctly implemented, so the way it was working
was confusing for users.
- Grab delta was calculated in increments from the last stroke position, so it did not match the behavior of a grab brush. I refactored the grab delta calculation to make this change more explicit.
- Grab displacement was not calculated from the original coordinates
- Grab was using an incorrect strength

Grab is now setting the position of the affected vertices directly and
the constraints solve the rest of the cloth. I also tried to implement
an alternative version based on applying forces to move the vertices to
the grab position, but I think this is more controllable and the grab
falloff can be adjusted by tweaking the simulation falloff.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D7756

Commit Details:

Full Hash: 18f33f293bfe08e87c50cad4a9d628592d7a3d15
Parent Commit: 9aea7dc
Lines Changed: +90, -50

4 Modified Paths:

/source/blender/editors/sculpt_paint/paint_stroke.c (+1, -2) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+58, -43) (Diff)
/source/blender/editors/sculpt_paint/sculpt_cloth.c (+24, -5) (Diff)
/source/blender/editors/sculpt_paint/sculpt_intern.h (+7, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021