diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2004-09-26 00:30:40 +0400 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2004-09-26 00:30:40 +0400 |
commit | a509b8adc9b8952cdb395c69406e821f57a9a6c7 (patch) | |
tree | 7c0e3c7b81007acc6b3e268e59a6af5fcb4bd93f /source/blender/python/api2_2x/Material.h | |
parent | bd371ddb9ff947d4e598ad04af9402d89fa80d5e (diff) |
Another round in the Great BPy Cleanup:
Run everything thru indent to cleanup spaces vs tabs.
Clean up some of the comments by hand.
BGL.c was not touched due to all that macro wackyness.
There are no functional changes to the code.
Pre-indent versions of source are tagged with
tag bpy-cleanup-20040925 , just in case.
Diffstat (limited to 'source/blender/python/api2_2x/Material.h')
-rw-r--r-- | source/blender/python/api2_2x/Material.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/source/blender/python/api2_2x/Material.h b/source/blender/python/api2_2x/Material.h index 5345cc0c90e..c9591c42271 100644 --- a/source/blender/python/api2_2x/Material.h +++ b/source/blender/python/api2_2x/Material.h @@ -1,4 +1,5 @@ /* + * $Id$ * * ***** BEGIN GPL/BL DUAL LICENSE BLOCK ***** * @@ -39,31 +40,31 @@ #include "rgbTuple.h" /*****************************************************************************/ -/* Python BPy_Material structure definition: */ +/* Python BPy_Material structure definition: */ /*****************************************************************************/ typedef struct { - PyObject_HEAD - Material *material; + PyObject_HEAD Material * material; BPy_rgbTuple *col, *amb, *spec, *mir; } BPy_Material; -extern PyTypeObject Material_Type; /* The Material PyType Object */ +extern PyTypeObject Material_Type; /* The Material PyType Object */ #define BPy_Material_Check(v) \ - ((v)->ob_type == &Material_Type) /* for type checking */ + ((v)->ob_type == &Material_Type) /* for type checking */ /*****************************************************************************/ -/* Module Blender.Material - public functions */ +/* Module Blender.Material - public functions */ /*****************************************************************************/ -PyObject *M_Material_Init (void); -PyObject *Material_CreatePyObject (Material *mat); -Material *Material_FromPyObject (PyObject *pyobj); -int Material_CheckPyObject (PyObject *pyobj); +PyObject *M_Material_Init( void ); +PyObject *Material_CreatePyObject( Material * mat ); +Material *Material_FromPyObject( PyObject * pyobj ); +int Material_CheckPyObject( PyObject * pyobj ); /* Some functions needed by NMesh.c */ -PyObject *EXPP_PyList_fromMaterialList (Material **matlist, int len, int all); -Material **EXPP_newMaterialList_fromPyList (PyObject *list); -Material **EXPP_newMaterialList(int len); +PyObject *EXPP_PyList_fromMaterialList( Material ** matlist, int len, + int all ); +Material **EXPP_newMaterialList_fromPyList( PyObject * list ); +Material **EXPP_newMaterialList( int len ); -#endif /* EXPP_MATERIAL_H */ +#endif /* EXPP_MATERIAL_H */ |