diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2004-10-07 23:25:40 +0400 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2004-10-07 23:25:40 +0400 |
commit | 0fdc0ce297be5a9621e41eba6e785a1d9c9287e4 (patch) | |
tree | 88eadd40613bf72f2cbe1b8bfbd5a1418b627a1a /source/blender/python/api2_2x/Types.c | |
parent | 14ae3362c5dce229e84ca9331879d99d44a13a50 (diff) |
Another step in the Big Bpy Cleanup.
- move static declarations and data definitions out of headers.
the BGL module still need cleaning.
- move declarations out of modules.h and into appropriate .h files.
modules.h still exists as a container for the few modules that
need to #include almost everything.
- all files now have a $Id tag and have been formatted by indent
there are no changes to executable code.
pre-commit versions are tagged with bpy-cleanup-pre-20041007
for the sake of paranoia.
Diffstat (limited to 'source/blender/python/api2_2x/Types.c')
-rw-r--r-- | source/blender/python/api2_2x/Types.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/source/blender/python/api2_2x/Types.c b/source/blender/python/api2_2x/Types.c index 6647071013f..930ecc7c270 100644 --- a/source/blender/python/api2_2x/Types.c +++ b/source/blender/python/api2_2x/Types.c @@ -36,14 +36,17 @@ This module is a dictionary of all Blender Python types"; struct PyMethodDef Null_methods[] = { {NULL, NULL, 0, NULL} }; + + +/* The internal types (lowercase first letter, like constant_Type) are only + * set when some object initializes them. But unless we do it early, we get + * some easy and unpredictable (varies with platform, even distro) ways to + * crash Blender. Some modules also need this early up, so let's generalize + * and init all our pytypes here. + */ + void types_InitAll( void ) { - /* The internal types (lowercase first letter, like constant_Type) are only - * set when some object initializes them. But unless we do it early, we get - * some easy and unpredictable (varies with platform, even distro) ways to - * crash Blender. Some modules also need this early up, so let's generalize - * and init all our pytypes here. */ - Action_Type.ob_type = &PyType_Type; Armature_Type.ob_type = &PyType_Type; BezTriple_Type.ob_type = &PyType_Type; |