Blender Git Loki

Git Commits -> Revision 8c6a4a6

May 4, 2018, 16:53 (GMT)
Cleanup: Remove redundant function (and cleanup compiler warnings in the process)

BKE_gpencil_frame_color_duplicate() is no longer needed to perform Grease Pencil's
in-house "COW" operations. It was previously used to create a copy of the palette
datablock being used, and to then reassign all the color pointers. Now that that's
no longer needed, we can just use the standard one.

Note: BKE_gpencil_stroke_duplicate() has now been modified to NOT clear the triangles
array anymore. Instead, since most places that use this will clear/reallocate it
themselves, it's easier to just keep it there, making the COW stuff easier.

Commit Details:

Full Hash: 8c6a4a6512452b0ac036525be485473193ef6d31
Parent Commit: 7726e46
Lines Changed: +9, -37

3 Modified Paths:

/source/blender/blenkernel/BKE_gpencil.h (+0, -2) (Diff)
/source/blender/blenkernel/intern/gpencil.c (+7, -34) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c (+2, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021