Bugfix #27856: Transforming Grease Pencil frames in Action Editor

didn't perform updates

* This problem was caused by a typo when adapting old code
* Fixed crash where keyframes-update was being called in Grease Pencil
transforms too

Todo:
Outliner/Datablocks Viewer doesn't update that nicely when these
keyframes get modified. Outside of gdb, I managed to get a few non-
repeatable crashes here; while debugging though, there was only some
lagging oddness if panning before the tree updated.
This commit is contained in:
Joshua Leung 2011-07-05 01:54:01 +00:00
parent e66b778fd6
commit a0fa8c3cd2

@ -4844,7 +4844,7 @@ void special_aftertrans_update(bContext *C, TransInfo *t)
// XXX: BAD! this get gpencil datablocks directly from main db...
// but that's how this currently works :/
for (gpd = G.main->gpencil.first; gpd; gpd = gpd->id.next) {
if (ID_REAL_USERS(gpd) > 1)
if (ID_REAL_USERS(gpd))
posttrans_gpd_clean(gpd);
}
}
@ -4872,6 +4872,7 @@ void special_aftertrans_update(bContext *C, TransInfo *t)
}
/* make sure all F-Curves are set correctly */
if (ac.datatype != ANIMCONT_GPENCIL)
ANIM_editkeyframes_refresh(&ac);
/* clear flag that was set for time-slide drawing */