Fix for the "black F-Curves" bug on undo
authorJoshua Leung <aligorith@gmail.com>
Tue, 3 Jul 2012 13:47:13 +0000 (13:47 +0000)
committerJoshua Leung <aligorith@gmail.com>
Tue, 3 Jul 2012 13:47:13 +0000 (13:47 +0000)
commit44ca0a43287020747db479a2206c6b2587547e59
tree12c62f2c41d0ff886bab627be55c8eebb47fae8c
parent69ca014d5096329e6f0b54c3e16d654e924c3478
Fix for the "black F-Curves" bug on undo
(From personal stash of bugs - since early 2.5 versions)

F-Curve colors get applied only on Graph Editor "refresh()". In some cases, undo
was reverting back to a state where the colors had not yet been set. In these
cases, there would be no refresh() after that undo (until expanding a channel or
some other similar action), resulting in "black F-Curves" appearing. So, now we
force such an update after undo to ensure that the curves never display black.

(Noticed while investigating another bug for Mango related to
CLIP_OT_constraint_to_fcurve not sending notifiers required when new F-Curves
are added)
source/blender/blenloader/intern/readfile.c
source/blender/editors/space_graph/space_graph.c