Page MenuHome

Fix selected_nla_strips when used in other editors
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on May 12 2020, 1:06 PM.

Details

Summary

This was introduced in rBf8c4f5e308.

I detected this with ASAN. There was a heap buffer overflow when I
right-clicked on a channel in the timeline.

Please check if the original if the thing you fixed in rB60ff3a7daff75e631993e6e5d284746442e824f3 still works for you.

Diff Detail

Repository
rB Blender

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.May 12 2020, 1:06 PM
Jacques Lucke (JacquesLucke) created this revision.

Ok, will wait with committing this until you accept it. :)

I do wonder if ANIM_animdata_filter could filter this for us already, but I'm not sure if that is supported.

I don't think it's possible to let ANIM_animdata_filter() only return elements of a specific type, so the current approach looks good to me.
I haven't actually tested the code, I trust @Jacques Lucke (JacquesLucke) and @Philipp Oeser (lichtwerk) on this ;-)

This revision is now accepted and ready to land.May 12 2020, 1:37 PM