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:
authorCampbell Barton <ideasman42@gmail.com>2007-02-25 10:36:50 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-02-25 10:36:50 +0300
commit436e1697fdf07f5a17bcfbdde8b18e89e44e9cf1 (patch)
tree6e7695edfd05e95a01d4772f24afb84303a8ee0e /source/blender/python/api2_2x/Blender.c
parente64b887fad611917916b2ce30bbcf2aa55593ea5 (diff)
made attributes (name, property, users, fakeUser, lib) into functions all python types can use.
removed a lot of code duplication when moving to this. Also removed unused functions GetMaterialByName(), same for Mesh, Object, World etc.
Diffstat (limited to 'source/blender/python/api2_2x/Blender.c')
-rw-r--r--source/blender/python/api2_2x/Blender.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/python/api2_2x/Blender.c b/source/blender/python/api2_2x/Blender.c
index 4544d47344d..3b2a6afce38 100644
--- a/source/blender/python/api2_2x/Blender.c
+++ b/source/blender/python/api2_2x/Blender.c
@@ -94,7 +94,7 @@ struct ID; /*keep me up here */
#include "Types.h"
#include "Main.h"
-//for the removefakeuser hack
+/*for the removefakeuser hack*/
#include "NLA.h" /*This must come first*/
#include "BKE_action.h"
@@ -850,7 +850,7 @@ static PyObject * Blender_UpdateMenus( PyObject * self )
static PyObject *Blender_RemoveFakeuser(PyObject *self, PyObject *args)
{
ID *id;
- BPy_Action *py_thing; //lousy coder antont did not know how to accept any bpy thing with ID..
+ BPy_Action *py_thing; /*lousy coder antont did not know how to accept any bpy thing with ID..*/
if( !PyArg_ParseTuple( args, "O!", &Action_Type, &py_thing ) )
return EXPP_ReturnPyObjError( PyExc_AttributeError,
@@ -940,9 +940,9 @@ void M_Blender_Init(void)
blender -P somescript.py -b
The if below solves the segfaults that happen when python runs and
G.scene is NULL */
- if(G.background && G.main->scene.first==0) {
+ if(G.background && G.main->scene.first==NULL) {
Scene *sce= add_scene("1");
- //set_scene(sce); /* causes a crash */
+ /*set_scene(sce);*/ /* causes a crash */
G.scene= sce;
}
@@ -951,7 +951,7 @@ void M_Blender_Init(void)
types_InitAll(); /* set all our pytypes to &PyType_Type */
- // constants for packed files
+ /* constants for packed files*/
UnpackModes = Blender_UnpackModesDict( );
if( UnpackModes )
PyModule_AddObject( module, "UnpackModes", UnpackModes );