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:
authorJacques Guignot <guignot@wanadoo.fr>2004-06-14 13:24:50 +0400
committerJacques Guignot <guignot@wanadoo.fr>2004-06-14 13:24:50 +0400
commitde9e455088ff73140823ddbad9a6d48783e6ac8e (patch)
tree8e141191c17aa080db21a4947cb6f047ff452185 /source/blender/python/api2_2x/World.h
parent8e48c5c412484d5e9e6d361b7160cd8fb8638090 (diff)
added a [get/set]Range function.
Updated documentation accordingly. (suggested by Stephane SOPPERA, tks!)
Diffstat (limited to 'source/blender/python/api2_2x/World.h')
-rw-r--r--source/blender/python/api2_2x/World.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/World.h b/source/blender/python/api2_2x/World.h
index 76b6510faa9..44ecb047398 100644
--- a/source/blender/python/api2_2x/World.h
+++ b/source/blender/python/api2_2x/World.h
@@ -80,6 +80,8 @@ struct PyMethodDef M_World_methods[] = {
/*****************************************************************************/
/* Python BPy_World methods declarations: */
/*****************************************************************************/
+static PyObject *World_getRange(BPy_World *self);
+static PyObject *World_setRange(BPy_World *self, PyObject *args);
static PyObject *World_getIpo(BPy_World *self);
static PyObject *World_setIpo(BPy_World *self, PyObject *args);
static PyObject *World_clearIpo(BPy_World *self);
@@ -104,6 +106,10 @@ static PyObject *World_setMist(BPy_World *self, PyObject *args );
/* Python BPy_World methods table: */
/*****************************************************************************/
static PyMethodDef BPy_World_methods[] = {
+ {"getRange", (PyCFunction)World_getRange, METH_NOARGS,
+ "() - Return World Range"},
+ {"setRange", (PyCFunction)World_setRange, METH_VARARGS,
+ "() - Change this World's range"},
{"getIpo", (PyCFunction)World_getIpo, METH_NOARGS,
"() - Return World Ipo"},
{"setIpo", (PyCFunction)World_setIpo, METH_VARARGS,