Page MenuHome

Dont show temporary IK constraints in the constraint stack
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Sep 14 2020, 11:29 PM.

Details

Summary

Those constraints are added when using AutoIK (or targetless IK as
well).
While not strictly incorrect, these kinds of constraints were not
showing in the UI prior to rBeaa44afe703e (and I think they should not).

ref T80437

Diff Detail

Repository
rB Blender
Branch
T80437_UI (branched from master)
Build Status
Buildable 10189
Build 10189: arc lint + arc unit

Event Timeline

Philipp Oeser (lichtwerk) requested review of this revision.Sep 14 2020, 11:29 PM

Thanks for looking into this. I always enjoy your deep dives into the causes of bugs and this one is no exception. I'll try not to be the source of them though : P

Accepting with just one caveat inline.

source/blender/editors/interface/interface_templates.c
2097

It worked fine for me when I tested this patch, but theoretically this check should be duplicated down here too). I'm guessing it works because they're added at the end.
Otherwise it might break in the case where the constraint list doesn't change over successive redraws.

Sorry for the messiness of this code. It's in my personal medium terms to clean up / generalize the code for the different stacks.
This check would become a generalized "don't show data in UI" check.
So let's keep this consistent with the other templates and add the check down here for now too.

This revision is now accepted and ready to land.Sep 15 2020, 1:08 AM