Page MenuHome

Fix T58068: gizmo crash for bone on a disabled armature layer

Authored by Philipp Oeser (lichtwerk) on Nov 28 2018, 2:40 PM.

Diff Detail

rB Blender

Event Timeline

Brecht Van Lommel (brecht) requested changes to this revision.EditedNov 28 2018, 3:01 PM

I'm not very familiar with the widget code, but I think it's the poll function that is wrong.

It should use bPoseChannel *pchan = BKE_pose_channel_active(ob); and then pchan->bone, rather than arm->act_bone.

In general the way data is retrieved in poll functions should match the other functions.

This revision now requires changes to proceed.Nov 28 2018, 3:01 PM
This revision is now accepted and ready to land.Nov 29 2018, 2:12 PM
This revision was automatically updated to reflect the committed changes.