Blender Git Loki
Git Commits -> Revision ced3b0f
Revision ced3b0f by Ton Roosendaal (master) November 26, 2006, 12:23 (GMT) |
SculptMode fix: DNA definition of Sculpt structs in Scene were not properly aligned, causing memory errors on quit ("Memoryblock reconstruct: end corrupt"). More testing reveiled padding errors in two other DNA_ includes, for sound and gamelogic. Both potentially crashers... and caused by commenting out struct members with a C++ comment, that seems to not work... I've revived the DNA padding test method, which saves out a simple C file you can compile to see where padding issues are. This now works as follows: - change line 991 in makesdna.c to become (1) (true). - recompile makesdna.c - you now have a padding.c in the same dir as makesdna.c - compile it, command line: "gcc -o padding padding.c" - now run it (./padding), and it will print out errors, if there are. For me, the DNA files are now 100% padding free. Might be interesting to check it in 64 bits though! |
Commit Details:
Full Hash: ced3b0fd6f4740a5fa9eba3f78b490a4a5467168
SVN Revision: 9064
Parent Commit: 6ede635
Lines Changed: +15, -16