Page MenuHome

script.patch

Authored By
Ken Hughes (khughes)
Nov 13 2013, 12:58 PM
Size
25 KB
Subscribers
None

script.patch

Index: blender/source/blender/python/api2_2x/Camera.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Camera.c,v
retrieving revision 1.31
diff -u -u -r1.31 Camera.c
--- blender/source/blender/python/api2_2x/Camera.c 9 Mar 2005 19:45:55 -0000 1.31
+++ blender/source/blender/python/api2_2x/Camera.c 21 Mar 2005 06:24:31 -0000
@@ -118,7 +118,7 @@
static PyObject *Camera_setScale( BPy_Camera * self, PyObject * args );
static PyObject *Camera_getScriptLinks( BPy_Camera * self, PyObject * args );
static PyObject *Camera_addScriptLink( BPy_Camera * self, PyObject * args );
-static PyObject *Camera_clearScriptLinks( BPy_Camera * self );
+static PyObject *Camera_clearScriptLinks( BPy_Camera * self, PyObject * args );
Camera *GetCameraByName( char *name );
@@ -176,8 +176,9 @@
"(text) - string: an existing Blender Text name;\n"
"(evt) string: FrameChanged or Redraw."},
{"clearScriptLinks", ( PyCFunction ) Camera_clearScriptLinks,
- METH_NOARGS,
- "() - Delete all scriptlinks from this camera."},
+ METH_VARARGS,
+ "() - Delete all scriptlinks from this camera.\n"
+ "([s1<,s2,s3...>]) - Delete specified scriptlinks from this camera."},
{NULL, NULL, 0, NULL}
};
@@ -771,22 +772,18 @@
slink = &( cam )->scriptlink;
- if( !EXPP_addScriptLink( slink, args, 0 ) )
- return EXPP_incr_ret( Py_None );
- else
- return NULL;
+ return EXPP_addScriptLink( slink, args, 0 );
}
/* cam.clearScriptLinks */
-static PyObject *Camera_clearScriptLinks( BPy_Camera * self )
+static PyObject *Camera_clearScriptLinks( BPy_Camera * self, PyObject * args )
{
Camera *cam = self->camera;
ScriptLink *slink = NULL;
slink = &( cam )->scriptlink;
- return EXPP_incr_ret( Py_BuildValue
- ( "i", EXPP_clearScriptLinks( slink ) ) );
+ return EXPP_clearScriptLinks( slink, args );
}
/* cam.getScriptLinks */
Index: blender/source/blender/python/api2_2x/Lamp.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Lamp.c,v
retrieving revision 1.29
diff -u -u -r1.29 Lamp.c
--- blender/source/blender/python/api2_2x/Lamp.c 9 Feb 2005 15:53:34 -0000 1.29
+++ blender/source/blender/python/api2_2x/Lamp.c 21 Mar 2005 06:24:32 -0000
@@ -207,7 +207,7 @@
PyObject * args );
static PyObject *Lamp_getScriptLinks( BPy_Lamp * self, PyObject * args );
static PyObject *Lamp_addScriptLink( BPy_Lamp * self, PyObject * args );
-static PyObject *Lamp_clearScriptLinks( BPy_Lamp * self );
+static PyObject *Lamp_clearScriptLinks( BPy_Lamp * self, PyObject * args );
/*****************************************************************************/
/* Python BPy_Lamp methods table: */
@@ -295,8 +295,9 @@
"(text) - string: an existing Blender Text name;\n"
"(evt) string: FrameChanged or Redraw."},
{"clearScriptLinks", ( PyCFunction ) Lamp_clearScriptLinks,
- METH_NOARGS,
- "() - Delete all scriptlinks from this lamp."},
+ METH_VARARGS,
+ "() - Delete all scriptlinks from this lamp.\n"
+ "([s1<,s2,s3...>]) - Delete specified scriptlinks from this lamp."},
{"getIpo", ( PyCFunction ) Lamp_getIpo, METH_NOARGS,
"() - get IPO for this lamp"},
{"clearIpo", ( PyCFunction ) Lamp_clearIpo, METH_NOARGS,
@@ -1214,22 +1215,18 @@
slink = &( lamp )->scriptlink;
- if( !EXPP_addScriptLink( slink, args, 0 ) )
- return EXPP_incr_ret( Py_None );
- else
- return NULL;
+ return EXPP_addScriptLink( slink, args, 0 );
}
/* lamp.clearScriptLinks */
-static PyObject *Lamp_clearScriptLinks( BPy_Lamp * self )
+static PyObject *Lamp_clearScriptLinks( BPy_Lamp * self, PyObject * args )
{
Lamp *lamp = self->lamp;
ScriptLink *slink = NULL;
slink = &( lamp )->scriptlink;
- return EXPP_incr_ret( Py_BuildValue
- ( "i", EXPP_clearScriptLinks( slink ) ) );
+ return EXPP_clearScriptLinks( slink, args );
}
/* mat.getScriptLinks */
Index: blender/source/blender/python/api2_2x/Material.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Material.c,v
retrieving revision 1.31
diff -u -u -r1.31 Material.c
--- blender/source/blender/python/api2_2x/Material.c 20 Mar 2005 18:28:36 -0000 1.31
+++ blender/source/blender/python/api2_2x/Material.c 21 Mar 2005 06:24:32 -0000
@@ -491,7 +491,7 @@
PyObject * args );
static PyObject *Material_addScriptLink( BPy_Material * self,
PyObject * args );
-static PyObject *Material_clearScriptLinks( BPy_Material * self );
+static PyObject *Material_clearScriptLinks( BPy_Material * self, PyObject * args );
static PyObject *Material_insertIpoKey( BPy_Material * self, PyObject * args );
@@ -668,8 +668,9 @@
"(text) - string: an existing Blender Text name;\n"
"(evt) string: FrameChanged or Redraw."},
{"clearScriptLinks", ( PyCFunction ) Material_clearScriptLinks,
- METH_NOARGS,
- "() - Delete all scriptlinks from this material."},
+ METH_VARARGS,
+ "() - Delete all scriptlinks from this material.\n"
+ "([s1<,s2,s3...>]) - Delete specified scriptlinks from this material."},
{NULL, NULL, 0, NULL}
};
@@ -1977,22 +1978,18 @@
slink = &( mat )->scriptlink;
- if( !EXPP_addScriptLink( slink, args, 0 ) )
- return EXPP_incr_ret( Py_None );
- else
- return NULL;
+ return EXPP_addScriptLink( slink, args, 0 );
}
/* mat.clearScriptLinks */
-static PyObject *Material_clearScriptLinks( BPy_Material * self )
+static PyObject *Material_clearScriptLinks( BPy_Material * self, PyObject * args )
{
Material *mat = self->material;
ScriptLink *slink = NULL;
slink = &( mat )->scriptlink;
- return EXPP_incr_ret( Py_BuildValue
- ( "i", EXPP_clearScriptLinks( slink ) ) );
+ return EXPP_clearScriptLinks( slink, args );
}
/* mat.getScriptLinks */
Index: blender/source/blender/python/api2_2x/Object.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Object.c,v
retrieving revision 1.104
diff -u -u -r1.104 Object.c
--- blender/source/blender/python/api2_2x/Object.c 19 Mar 2005 23:47:39 -0000 1.104
+++ blender/source/blender/python/api2_2x/Object.c 21 Mar 2005 06:24:33 -0000
@@ -168,7 +168,7 @@
PyObject * args );
static PyObject *Object_getScriptLinks( BPy_Object * self, PyObject * args );
static PyObject *Object_addScriptLink( BPy_Object * self, PyObject * args );
-static PyObject *Object_clearScriptLinks( BPy_Object * self );
+static PyObject *Object_clearScriptLinks( BPy_Object * self, PyObject * args );
static PyObject *Object_setDupliVerts ( BPy_Object * self, PyObject * args );
/*****************************************************************************/
/* Python BPy_Object methods table: */
@@ -327,8 +327,9 @@
"(text) - string: an existing Blender Text name;\n"
"(evt) string: FrameChanged or Redraw."},
{"clearScriptLinks", ( PyCFunction ) Object_clearScriptLinks,
- METH_NOARGS,
- "() - Delete all scriptlinks from this object."},
+ METH_VARARGS,
+ "() - Delete all scriptlinks from this object.\n"
+ "([s1<,s2,s3...>]) - Delete specified scriptlinks from this object."},
{"setDupliVerts", ( PyCFunction ) Object_setDupliVerts,
METH_VARARGS, "() - set or reset duplicate child objects on all vertices"},
{NULL, NULL, 0, NULL}
@@ -2046,22 +2047,18 @@
slink = &( obj )->scriptlink;
- if( !EXPP_addScriptLink( slink, args, 0 ) )
- return EXPP_incr_ret( Py_None );
- else
- return NULL;
+ return EXPP_addScriptLink( slink, args, 0 );
}
/* obj.clearScriptLinks */
-static PyObject *Object_clearScriptLinks( BPy_Object * self )
+static PyObject *Object_clearScriptLinks( BPy_Object * self, PyObject * args )
{
Object *obj = self->object;
ScriptLink *slink = NULL;
slink = &( obj )->scriptlink;
- return EXPP_incr_ret( Py_BuildValue
- ( "i", EXPP_clearScriptLinks( slink ) ) );
+ return EXPP_clearScriptLinks( slink, args );
}
/* obj.getScriptLinks */
Index: blender/source/blender/python/api2_2x/Scene.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Scene.c,v
retrieving revision 1.27
diff -u -u -r1.27 Scene.c
--- blender/source/blender/python/api2_2x/Scene.c 7 Oct 2004 19:25:40 -0000 1.27
+++ blender/source/blender/python/api2_2x/Scene.c 21 Mar 2005 06:24:33 -0000
@@ -105,7 +105,7 @@
static PyObject *Scene_getRadiosityContext( BPy_Scene * self );
static PyObject *Scene_getScriptLinks( BPy_Scene * self, PyObject * args );
static PyObject *Scene_addScriptLink( BPy_Scene * self, PyObject * args );
-static PyObject *Scene_clearScriptLinks( BPy_Scene * self );
+static PyObject *Scene_clearScriptLinks( BPy_Scene * self, PyObject * args );
static PyObject *Scene_play( BPy_Scene * self, PyObject * args );
//deprecated methods
@@ -160,8 +160,9 @@
"(text) - string: an existing Blender Text name;\n"
"(evt) string: FrameChanged, OnLoad or Redraw."},
{"clearScriptLinks", ( PyCFunction ) Scene_clearScriptLinks,
- METH_NOARGS,
- "() - Delete all scriptlinks from this scene."},
+ METH_VARARGS,
+ "() - Delete all scriptlinks from this scene.\n"
+ "([s1<,s2,s3...>]) - Delete specified scriptlinks from this scene."},
{"setCurrentCamera", ( PyCFunction ) Scene_setCurrentCamera,
METH_VARARGS,
"() - Set the currently active Camera"},
@@ -825,14 +826,11 @@
slink = &( scene )->scriptlink;
- if( !EXPP_addScriptLink( slink, args, 1 ) )
- return EXPP_incr_ret( Py_None );
- else
- return NULL;
+ return EXPP_addScriptLink( slink, args, 1 );
}
/* scene.clearScriptLinks */
-static PyObject *Scene_clearScriptLinks( BPy_Scene * self )
+static PyObject *Scene_clearScriptLinks( BPy_Scene * self, PyObject * args )
{
Scene *scene = self->scene;
ScriptLink *slink = NULL;
@@ -843,8 +841,7 @@
slink = &( scene )->scriptlink;
- return EXPP_incr_ret( Py_BuildValue
- ( "i", EXPP_clearScriptLinks( slink ) ) );
+ return EXPP_clearScriptLinks( slink, args );
}
/* scene.getScriptLinks */
Index: blender/source/blender/python/api2_2x/World.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/World.c,v
retrieving revision 1.26
diff -u -u -r1.26 World.c
--- blender/source/blender/python/api2_2x/World.c 9 Feb 2005 15:53:35 -0000 1.26
+++ blender/source/blender/python/api2_2x/World.c 21 Mar 2005 06:24:33 -0000
@@ -84,9 +84,11 @@
static PyObject *World_setStar( BPy_World * self, PyObject * args );
static PyObject *World_getMist( BPy_World * self );
static PyObject *World_setMist( BPy_World * self, PyObject * args );
+static PyObject *World_getMode( BPy_World * self );
+static PyObject *World_setMode( BPy_World * self, PyObject * args );
static PyObject *World_getScriptLinks( BPy_World * self, PyObject * args );
static PyObject *World_addScriptLink( BPy_World * self, PyObject * args );
-static PyObject *World_clearScriptLinks( BPy_World * self );
+static PyObject *World_clearScriptLinks( BPy_World * self, PyObject * args );
static PyObject *World_setCurrent( BPy_World * self );
@@ -177,6 +179,10 @@
"() - Return World Data mistype"},
{"setMistype", ( PyCFunction ) World_setMistype, METH_VARARGS,
"() - Return World Data mistype"},
+ {"getMode", ( PyCFunction ) World_getMode, METH_NOARGS,
+ "() - Return World Data mode"},
+ {"setMode", ( PyCFunction ) World_setMode, METH_VARARGS,
+ "() - Return World Data mode"},
{"getHor", ( PyCFunction ) World_getHor, METH_NOARGS,
"() - Return World Data hor"},
{"setHor", ( PyCFunction ) World_setHor, METH_VARARGS,
@@ -206,8 +212,9 @@
"(text) - string: an existing Blender Text name;\n"
"(evt) string: FrameChanged or Redraw."},
{"clearScriptLinks", ( PyCFunction ) World_clearScriptLinks,
- METH_NOARGS,
- "() - Delete all scriptlinks from this world :)."},
+ METH_VARARGS,
+ "() - Delete all scriptlinks from this world.\n"
+ "([s1<,s2,s3...>]) - Delete specified scriptlinks from this world."},
{"setCurrent", ( PyCFunction ) World_setCurrent, METH_NOARGS,
"() - Makes this world the active world for the current scene."},
{"makeActive", ( PyCFunction ) World_setCurrent, METH_NOARGS,
@@ -272,7 +279,7 @@
if( !PyArg_ParseTuple( args, "s", &name ) )
return ( EXPP_ReturnPyObjError( PyExc_TypeError,
- "expected int argument" ) );
+ "expectedint string argument" ) );
blworld = add_world( name );
@@ -836,22 +843,18 @@
slink = &( world )->scriptlink;
- if( !EXPP_addScriptLink( slink, args, 0 ) )
- return EXPP_incr_ret( Py_None );
- else
- return NULL;
+ return EXPP_addScriptLink( slink, args, 0 );
}
/* world.clearScriptLinks */
-static PyObject *World_clearScriptLinks( BPy_World * self )
+static PyObject *World_clearScriptLinks( BPy_World * self, PyObject * args )
{
World *world = self->world;
ScriptLink *slink = NULL;
slink = &( world )->scriptlink;
- return EXPP_incr_ret( Py_BuildValue
- ( "i", EXPP_clearScriptLinks( slink ) ) );
+ return EXPP_clearScriptLinks( slink, args );
}
/* world.getScriptLinks */
Index: blender/source/blender/python/api2_2x/gen_utils.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/gen_utils.c,v
retrieving revision 1.22
diff -u -u -r1.22 gen_utils.c
--- blender/source/blender/python/api2_2x/gen_utils.c 19 Mar 2005 06:24:54 -0000 1.22
+++ blender/source/blender/python/api2_2x/gen_utils.c 21 Mar 2005 06:24:34 -0000
@@ -1,5 +1,5 @@
/*
- * $Id: gen_utils.c,v 1.22 2005/03/19 06:24:54 ianwill Exp $
+ * $Id: gen_utils.c,v 1.1 2005/03/20 21:30:13 khughes Exp khughes $
*
* ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
*
@@ -37,10 +37,13 @@
#endif
#include <DNA_text_types.h>
#include <MEM_guardedalloc.h>
+ /* kludge: how does everyone else include mydevice.h? */
+#include <BGL.h> /* needed for REDRAWBUTSSCRIPT */
#include "gen_utils.h"
#include "constant.h"
+
/*****************************************************************************/
/* Description: This function clamps an int to the given interval */
/* [min, max]. */
@@ -335,6 +338,7 @@
return list;
}
+#if 0
int EXPP_clearScriptLinks( ScriptLink * slink )
{
/* actually !scriptlink shouldn't happen ... */
@@ -352,8 +356,107 @@
return 0; /* normal return */
}
+#endif
-int EXPP_addScriptLink( ScriptLink * slink, PyObject * args, int is_scene )
+PyObject *EXPP_clearScriptLinks( ScriptLink * slink, PyObject * args )
+{
+ int i, j, totLinks, deleted = 0;
+ PyObject *seq = NULL;
+ ID **stmp = NULL;
+ short *ftmp = NULL;
+
+ /* check for an optional list of strings */
+ if( !PyArg_ParseTuple( args, "|O", &seq ) )
+ return ( EXPP_ReturnPyObjError
+ ( PyExc_TypeError,
+ "expected no arguments or a list of strings" ) );
+
+
+ /* if there was a parameter, handle it */
+ if ( seq != NULL ) {
+ /* check that parameter IS list of strings */
+ if ( !PyList_Check ( seq ) )
+ return ( EXPP_ReturnPyObjError
+ ( PyExc_TypeError,
+ "expected a list of strings" ) );
+
+ totLinks = PyList_Size ( seq );
+ for ( i = 0 ; i < totLinks ; ++i ) {
+ if ( !PyString_Check ( PySequence_GetItem( seq, i ) ) )
+ return ( EXPP_ReturnPyObjError
+ ( PyExc_TypeError,
+ "expected list to contain strings" ) );
+ }
+
+ /*
+ parameters OK: now look for each script, and delete
+ its link as we find it (this handles multiple links)
+ */
+ for ( i = 0 ; i < totLinks ; ++i )
+ {
+ char *str;
+ str = PyString_AsString ( PySequence_GetItem( seq, i ) );
+ for ( j = 0 ; j < slink->totscript ; ++j ) {
+ if ( slink->scripts[j] && !strcmp ( slink->scripts[j]->name+2, str ) ) {
+ slink->scripts[j] = NULL;
+ ++deleted;
+ }
+ }
+ }
+ }
+ /* it no parameter, then delete all scripts */
+ else {
+ deleted = slink->totscript;
+ }
+
+ /*
+ if not all scripts deleted, create new lists and copy remaining
+ links to them
+ */
+
+ if ( slink->totscript > deleted ) {
+ slink->totscript -= deleted;
+
+ stmp = slink->scripts;
+ slink->scripts =
+ MEM_mallocN( sizeof( ID * ) * ( slink->totscript ),
+ "bpySlinkL" );
+
+ ftmp = slink->flag;
+ slink->flag =
+ MEM_mallocN( sizeof( short * ) * ( slink->totscript ),
+ "bpySlinkF" );
+
+ for ( i = 0, j = 0 ; i < slink->totscript ; ++j ) {
+ if ( stmp[j] != NULL ) {
+ memcpy( slink->scripts+i, stmp+j, sizeof( ID * ) );
+ memcpy( slink->flag+i, ftmp+j, sizeof( short ) );
+ ++i;
+ }
+ }
+ MEM_freeN( stmp );
+ MEM_freeN( ftmp );
+
+ EXPP_allqueue (REDRAWBUTSSCRIPT, 0 );
+ slink->actscript = 1;
+ } else {
+
+ /* all scripts deleted, so delete entire list and free memory */
+
+ if( slink->scripts )
+ MEM_freeN( slink->scripts );
+ if( slink->flag )
+ MEM_freeN( slink->flag );
+
+ slink->scripts = NULL;
+ slink->flag = NULL;
+ slink->totscript = slink->actscript = 0;
+ }
+
+ return EXPP_incr_ret( Py_None );
+}
+
+PyObject *EXPP_addScriptLink( ScriptLink * slink, PyObject * args, int is_scene )
{
int event = 0, found_txt = 0;
void *stmp = NULL, *ftmp = NULL;
@@ -363,13 +466,20 @@
/* !scriptlink shouldn't happen ... */
if( !slink ) {
- return EXPP_ReturnIntError( PyExc_RuntimeError,
+ return EXPP_ReturnPyObjError( PyExc_RuntimeError,
"internal error: no scriptlink!" );
}
if( !PyArg_ParseTuple( args, "ss", &textname, &eventname ) )
- return EXPP_ReturnIntError( PyExc_TypeError,
+#if 0
+ return EXPP_ReturnPyObjError( PyExc_TypeError,
"expected two strings as arguments" );
+#else
+return ( EXPP_ReturnPyObjError
+ ( PyExc_TypeError,
+ "expected int or string argument" ) );
+#endif
+
while( bltxt ) {
if( !strcmp( bltxt->id.name + 2, textname ) ) {
@@ -380,7 +490,7 @@
}
if( !found_txt )
- return EXPP_ReturnIntError( PyExc_AttributeError,
+ return EXPP_ReturnPyObjError( PyExc_AttributeError,
"no such Blender Text." );
if( !strcmp( eventname, "FrameChanged" ) )
@@ -421,7 +531,8 @@
slink->totscript++;
if( slink->actscript < 1 )
- slink->actscript = 1;
+ slink->actscript = 1;
- return 0; /* normal exit */
+ return EXPP_incr_ret( Py_None );
}
+
Index: blender/source/blender/python/api2_2x/gen_utils.h
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/gen_utils.h,v
retrieving revision 1.19
diff -u -u -r1.19 gen_utils.h
--- blender/source/blender/python/api2_2x/gen_utils.h 19 Mar 2005 06:24:54 -0000 1.19
+++ blender/source/blender/python/api2_2x/gen_utils.h 21 Mar 2005 06:24:34 -0000
@@ -91,8 +91,8 @@
/* scriplinks-related: */
PyObject *EXPP_getScriptLinks( ScriptLink * slink, PyObject * args,
int is_scene );
-int EXPP_clearScriptLinks( ScriptLink * slink );
-int EXPP_addScriptLink( ScriptLink * slink, PyObject * args, int is_scene );
+PyObject *EXPP_clearScriptLinks( ScriptLink * slink, PyObject * args );
+PyObject *EXPP_addScriptLink( ScriptLink * slink, PyObject * args, int is_scene );
/* this queues redraws if we're not in background mode: */
void EXPP_allqueue(unsigned short event, short val);
Index: blender/source/blender/python/api2_2x/doc/Camera.py
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/doc/Camera.py,v
retrieving revision 1.9
diff -u -u -r1.9 Camera.py
--- blender/source/blender/python/api2_2x/doc/Camera.py 9 Feb 2005 05:19:24 -0000 1.9
+++ blender/source/blender/python/api2_2x/doc/Camera.py 21 Mar 2005 06:24:34 -0000
@@ -211,11 +211,13 @@
'event' type) or None if there are no script links at all.
"""
- def clearScriptLinks ():
+ def clearScriptLinks (list = None):
"""
- Delete all this Camera's script links.
- @rtype: bool
- @return: 0 if some internal problem occurred or 1 if successful.
+ Delete script links from this Camera. If no list is specified, all
+ script links are deleted.
+ @param list: None or a list of Blender L{Text}.
+ @rtype: None
+ @return: None
"""
def addScriptLink (text, event):
Index: blender/source/blender/python/api2_2x/doc/Lamp.py
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/doc/Lamp.py,v
retrieving revision 1.7
diff -u -u -r1.7 Lamp.py
--- blender/source/blender/python/api2_2x/doc/Lamp.py 9 Oct 2004 05:41:03 -0000 1.7
+++ blender/source/blender/python/api2_2x/doc/Lamp.py 21 Mar 2005 06:24:34 -0000
@@ -335,11 +335,13 @@
'event' type) or None if there are no script links at all.
"""
- def clearScriptLinks ():
+ def clearScriptLinks (list = None):
"""
- Delete all this Lamp's script links.
- @rtype: bool
- @return: 0 if some internal problem occurred or 1 if successful.
+ Delete script links from this Lamp. If no list is specified, all
+ script links are deleted.
+ @param list: None or a list of Blender L{Text}.
+ @rtype: None
+ @return: None
"""
def addScriptLink (text, event):
Index: blender/source/blender/python/api2_2x/doc/Material.py
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/doc/Material.py,v
retrieving revision 1.10
diff -u -u -r1.10 Material.py
--- blender/source/blender/python/api2_2x/doc/Material.py 20 Mar 2005 19:52:15 -0000 1.10
+++ blender/source/blender/python/api2_2x/doc/Material.py 21 Mar 2005 06:24:34 -0000
@@ -643,11 +643,13 @@
'event' type) or None if there are no script links at all.
"""
- def clearScriptLinks ():
+ def clearScriptLinks (list = None):
"""
- Delete all this Material's script links.
- @rtype: bool
- @return: 0 if some internal problem occurred or 1 if successful.
+ Delete script links from this Material. If no list is specified, all
+ script links are deleted.
+ @param list: None or a list of Blender L{Text}.
+ @rtype: None
+ @return: None
"""
def addScriptLink (text, event):
Index: blender/source/blender/python/api2_2x/doc/Object.py
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/doc/Object.py,v
retrieving revision 1.28
diff -u -u -r1.28 Object.py
--- blender/source/blender/python/api2_2x/doc/Object.py 20 Mar 2005 03:50:56 -0000 1.28
+++ blender/source/blender/python/api2_2x/doc/Object.py 21 Mar 2005 06:24:36 -0000
@@ -576,11 +576,13 @@
'event' type) or None if there are no script links at all.
"""
- def clearScriptLinks ():
+ def clearScriptLinks (list = None):
"""
- Delete all this Object's script links.
- @rtype: bool
- @return: 0 if some internal problem occurred or 1 if successful.
+ Delete script links from this Object. If no list is specified, all
+ script links are deleted.
+ @param list: None or a list of Blender L{Text}.
+ @rtype: None
+ @return: None
"""
def addScriptLink (text, event):
Index: blender/source/blender/python/api2_2x/doc/Scene.py
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/doc/Scene.py,v
retrieving revision 1.11
diff -u -u -r1.11 Scene.py
--- blender/source/blender/python/api2_2x/doc/Scene.py 17 Aug 2004 04:26:00 -0000 1.11
+++ blender/source/blender/python/api2_2x/doc/Scene.py 21 Mar 2005 06:24:36 -0000
@@ -179,11 +179,13 @@
'event' type) or None if there are no script links at all.
"""
- def clearScriptLinks ():
+ def clearScriptLinks (list = None):
"""
- Delete all this Scene's script links.
- @rtype: bool
- @return: 0 if some internal problem occurred or 1 if successful.
+ Delete script links from this Scene. If no list is specified, all
+ script links are deleted.
+ @param list: None or a list of Blender L{Text}.
+ @rtype: None
+ @return: None
"""
def addScriptLink (text, event):
Index: blender/source/blender/python/api2_2x/doc/World.py
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/doc/World.py,v
retrieving revision 1.11
diff -u -u -r1.11 World.py
--- blender/source/blender/python/api2_2x/doc/World.py 20 Oct 2004 05:51:24 -0000 1.11
+++ blender/source/blender/python/api2_2x/doc/World.py 21 Mar 2005 06:33:09 -0000
@@ -42,9 +42,9 @@
"""
Creates a new World.
@type name: string
- @param name: World's name (optionnal).
+ @param name: World's name.
@rtype: Blender World
- @return: The created World. If the "name" parameter has not been provided, it will be automatically be set by blender.
+ @return: The created World.
"""
def Get (name):
@@ -299,11 +299,13 @@
'event' type) or None if there are no script links at all.
"""
- def clearScriptLinks ():
+ def clearScriptLinks (list = None):
"""
- Delete all this World's script links!
- @rtype: bool
- @return: 0 if some internal problem occurred or 1 if successful.
+ Delete script links from this World. If no list is specified, all
+ script links are deleted.
+ @param list: None or a list of Blender L{Text}.
+ @rtype: None
+ @return: None
"""
def addScriptLink (text, event):

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
68/ef/a7c5e3ec9b2458c13d41404d6fc6

Event Timeline