diff options
author | Ton Roosendaal <ton@blender.org> | 2006-11-26 15:23:21 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-11-26 15:23:21 +0300 |
commit | ced3b0fd6f4740a5fa9eba3f78b490a4a5467168 (patch) | |
tree | babb99ffbc344b3b1665a389224bf70db0f13724 /source/blender/makesdna/DNA_actuator_types.h | |
parent | 6ede6352edf5c83e963e827d0de6ce92f48d9442 (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_actuator_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_actuator_types.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_actuator_types.h b/source/blender/makesdna/DNA_actuator_types.h index 410ca665731..0531e70bb97 100644 --- a/source/blender/makesdna/DNA_actuator_types.h +++ b/source/blender/makesdna/DNA_actuator_types.h @@ -104,8 +104,6 @@ typedef struct bObjectActuator { float loc[3], rot[3]; float dloc[3], drot[3]; float linearvelocity[3], angularvelocity[3]; -// float addedlinearvelocity[3]; -// char anotherpad[4]; } bObjectActuator; typedef struct bIpoActuator { |