Page MenuHome

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

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

Diff Detail

rB Blender

Event Timeline

Brecht Van Lommel (brecht) requested changes to this revision.EditedWed, Nov 28, 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.Wed, Nov 28, 3:01 PM
This revision is now accepted and ready to land.Thu, Nov 29, 2:12 PM
This revision was automatically updated to reflect the committed changes.