Blender Git Commit Log
Git Commits -> Revision a079376
Revision a079376 by Campbell Barton (master) July 6, 2016, 13:07 (GMT) |
writefile: avoid adding SDNA to every undo step Since SDNA was allocated for each undo step, the new address meant it was considered different and included again. Add an option not to duplicate the DNA string when calling DNA_sdna_from_data, as well as avoiding a redundant copy, it writes the same address each time. |
Commit Details:
Full Hash: a0793765ef229b0d93bb9216b57faeb5940c5986
Parent Commit: 94e84f5
Lines Changed: +36, -11
6 Modified Paths:
/source/blender/blenloader/intern/readfile.c (+2, -2) (Diff)
/source/blender/blenloader/intern/writefile.c (+12, -2) (Diff)
/source/blender/makesdna/DNA_genfile.h (+3, -1) (Diff)
/source/blender/makesdna/DNA_sdna_types.h (+2, -1) (Diff)
/source/blender/makesdna/intern/dna_genfile.c (+16, -4) (Diff)
/source/blender/makesrna/intern/rna_define.c (+1, -1) (Diff)
/source/blender/blenloader/intern/writefile.c (+12, -2) (Diff)
/source/blender/makesdna/DNA_genfile.h (+3, -1) (Diff)
/source/blender/makesdna/DNA_sdna_types.h (+2, -1) (Diff)
/source/blender/makesdna/intern/dna_genfile.c (+16, -4) (Diff)
/source/blender/makesrna/intern/rna_define.c (+1, -1) (Diff)