Fix T47472: Border select in the Action Editor does not respect NLA scaling on Summary Tracks

This commit is contained in:
Joshua Leung 2016-02-20 02:53:08 +13:00
parent 4e35131609
commit ba99e097f7
Notes: blender-bot 2023-02-14 08:12:27 +01:00
Referenced by issue #47472, Wrong selection in Dope Sheet
1 changed files with 2 additions and 0 deletions

View File

@ -244,10 +244,12 @@ static void borderselect_action(bAnimContext *ac, const rcti rect, short mode, s
if (ELEM(mode, ACTKEYS_BORDERSEL_FRAMERANGE, ACTKEYS_BORDERSEL_ALLKEYS)) {
/* if channel is mapped in NLA, apply correction */
if (adt) {
ked.iterflags &= ~(KED_F1_NLA_UNMAP | KED_F2_NLA_UNMAP);
ked.f1 = BKE_nla_tweakedit_remap(adt, rectf.xmin, NLATIME_CONVERT_UNMAP);
ked.f2 = BKE_nla_tweakedit_remap(adt, rectf.xmax, NLATIME_CONVERT_UNMAP);
}
else {
ked.iterflags |= (KED_F1_NLA_UNMAP | KED_F2_NLA_UNMAP); /* for summary tracks */
ked.f1 = rectf.xmin;
ked.f2 = rectf.xmax;
}