Fix T87596: Pose brush not using automasking options
Automasking cache factors were missing in the pose brush deform function. Reviewed By: JacquesLucke Maniphest Tasks: T87596 Differential Revision: https://developer.blender.org/D11005
This commit is contained in:
parent
aede740c8a
commit
cc72dd7376
Notes:
blender-bot
2023-02-14 07:39:44 +01:00
Referenced by issue #87596, sculpt pose brush ignores fase set automasking
|
@ -197,8 +197,9 @@ static void do_pose_brush_task_cb_ex(void *__restrict userdata,
|
|||
mul_v3_fl(disp, segments[ik].weights[vd.index]);
|
||||
|
||||
/* Apply the vertex mask to the displacement. */
|
||||
float mask = vd.mask ? *vd.mask : 0.0f;
|
||||
mul_v3_fl(disp, 1.0f - mask);
|
||||
const float mask = vd.mask ? 1.0f - *vd.mask : 1.0f;
|
||||
const float automask = SCULPT_automasking_factor_get(ss->cache->automasking, ss, vd.index);
|
||||
mul_v3_fl(disp, mask * automask);
|
||||
|
||||
/* Accumulate the displacement. */
|
||||
add_v3_v3(total_disp, disp);
|
||||
|
|
Loading…
Reference in New Issue