Fix T47492: Name is not displayed for newly renamed FCurve, when the path was broken

Thanks Alexander Romanov (a.romanov) for the fix!
This commit is contained in:
Joshua Leung
2016-02-20 17:01:27 +13:00
parent e29a5ba617
commit 86c55a18e5

View File

@@ -4259,6 +4259,13 @@ void ANIM_channel_draw_widgets(const bContext *C, bAnimContext *ac, bAnimListEle
UI_block_emboss_set(block, UI_EMBOSS_NONE);
}
else {
/* Cannot get property/cannot or rename for some reason, so clear rename index
* so that this doesn't hang around, and the name can be drawn normally - T47492
*/
ac->ads->renameIndex = 0;
WM_event_add_notifier(C, NC_ANIMATION | ND_ANIMCHAN, NULL);
}
}
/* step 5) draw mute+protection toggles + (sliders) ....................... */