Blender Git Loki

Git Commits -> Revision a52fbfa

Revision a52fbfa by Bastien Montagne (master)
November 17, 2014, 10:19 (GMT)
ShapeKey: Refactor a bit `BKE_key_convert_from_...`

Thing is, those functions always reallocate the whole keyblock's data mem,
while in some cases we already have right amount of elements, so we can just
copy over. Further more, `BKE_key_convert_from_offset`, despite its name,
was not making any check nor allocation on keyblock's data elements!

So split 'copy' operation itself in `BKE_key_update_from_...`,
where no mem checks/operations are performed (only an assert).

Only useful in sculpt mode currently, but will be used by fix for T35170 too.

Commit Details:

Full Hash: a52fbfa828966d19e8db5995d2332c90aa6515f4
Parent Commit: b505eca
Lines Changed: +131, -73

3 Modified Paths:

/source/blender/blenkernel/BKE_key.h (+15, -6) (Diff)
/source/blender/blenkernel/intern/key.c (+113, -64) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+3, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021