Blender Git Loki

Git Commits -> Revision ba26ade

Revision ba26ade by Sybren A. Stüvel (master)
March 16, 2020, 15:23 (GMT)
Fix T61234 Mirroring Grease Pencil keyframes in the Dopesheet fails

`ANIM_animdata_update()` did not sort grease pencil frames. A
pre-existing comment stated this wouldn't be necessary as
`posttrans_gpd_clean()` already does this. However, this is only
applicable when the change is performed via the transform system. The
mirror operator doesn't call `posttrans_gpd_clean()`, invalidating the
assumption in the comment.

I moved the sorting code into `BKE_gpencil_layer_frames_sort()`, which
is now called from both `ANIM_animdata_update()` and
`posttrans_gpd_clean()`.

Commit Details:

Full Hash: ba26adee0c5caa6d4f3ffbda9c7038e807e3f9d2
Parent Commit: f0856b1
Lines Changed: +29, -23

4 Modified Paths:

/source/blender/blenkernel/BKE_gpencil.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/gpencil.c (+26, -0) (Diff)
/source/blender/editors/animation/anim_deps.c (+1, -3) (Diff)
/source/blender/editors/transform/transform_convert.c (+1, -20) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021