Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-11-26 15:23:21 +0300
committerTon Roosendaal <ton@blender.org>2006-11-26 15:23:21 +0300
commitced3b0fd6f4740a5fa9eba3f78b490a4a5467168 (patch)
treebabb99ffbc344b3b1665a389224bf70db0f13724 /source/blender/makesdna/DNA_sound_types.h
parent6ede6352edf5c83e963e827d0de6ce92f48d9442 (diff)
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!
Diffstat (limited to 'source/blender/makesdna/DNA_sound_types.h')
-rw-r--r--source/blender/makesdna/DNA_sound_types.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_sound_types.h b/source/blender/makesdna/DNA_sound_types.h
index 1ec788976df..27b9c373484 100644
--- a/source/blender/makesdna/DNA_sound_types.h
+++ b/source/blender/makesdna/DNA_sound_types.h
@@ -103,8 +103,6 @@ typedef struct bSound {
float distance;
int flags;
int streamlen;
-// unsigned int loopstart;
-// unsigned int loopend;
char channels;
char highprio;
char pad[10];