Based on an idea from Gaia, in this code we switch between ref axis (between Z and X). This avoid jumps near Z-aligned position, but brings back inconsistencies (rotating 180 in one step does not give same result as rotating 3 times 60), as in previous code.
So I guess we have a tradeoff case: Is it worst to have jumps sometimes, but consistent predictable roll results? or never any jump, but inconsistent unpredictable roll results?
I’ve spent a fair amount of hours on this stuff now, and I’m pretty much convinced we cannot fix both issues in the same time with current editbone design.