diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-07-03 03:15:54 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-07-03 17:13:49 +0300 |
commit | 17ba5660182b59c8c2f0b5afc2f73e91b5ffe151 (patch) | |
tree | 538d88a334e8f10e3d390b00d614703acbacb983 | |
parent | 3a59c184b98a729ccaa1261d1252e084167f7a32 (diff) |
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
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_pose.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_pose.c b/source/blender/editors/sculpt_paint/sculpt_pose.c index c9e2b7318d6..69c93ff7540 100644 --- a/source/blender/editors/sculpt_paint/sculpt_pose.c +++ b/source/blender/editors/sculpt_paint/sculpt_pose.c @@ -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; } |