Fix Pose Brush crashing after disabling connected only in FK mode
This function was returning the ik_chain before disabling the fake_neighbors, so when the brush was used again with fake neighbors disabled after rebuilding the PBVH and free them, they were still enabled in the SculptSession, causing a the crash. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8195
This commit is contained in:
parent
3a59c184b9
commit
17ba566018
|
@ -954,7 +954,7 @@ SculptPoseIKChain *SCULPT_pose_ik_chain_init(Sculpt *sd,
|
|||
ik_chain = pose_ik_chain_init_face_sets(sd, ob, ss, br, radius);
|
||||
break;
|
||||
case BRUSH_POSE_ORIGIN_FACE_SETS_FK:
|
||||
return pose_ik_chain_init_face_sets_fk(sd, ob, ss, radius, initial_location);
|
||||
ik_chain = pose_ik_chain_init_face_sets_fk(sd, ob, ss, radius, initial_location);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue