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-03-08 09:35:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-03-08 09:35:01 +0300
commit8e0704f59a40d9dd89b0c9cf92ec3484a106fa78 (patch)
tree0ef91cc93c518ed3ec286279a5bff53e21055f04 /source/blender/python/api2_2x/Material.h
parent4bd5ab628bbbdb23b1aeb074bc66f1133cb3af29 (diff)
Added python access to material and texture colorbands.
mat.colorbandDiffuse mat.colorbandSpecular tex.colorband gen_utils - removed unused func
Diffstat (limited to 'source/blender/python/api2_2x/Material.h')
-rw-r--r--source/blender/python/api2_2x/Material.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Material.h b/source/blender/python/api2_2x/Material.h
index 382bff552c7..0b8f48b713b 100644
--- a/source/blender/python/api2_2x/Material.h
+++ b/source/blender/python/api2_2x/Material.h
@@ -36,6 +36,7 @@
#include <Python.h>
#include "DNA_object_types.h"
#include "DNA_material_types.h"
+#include "DNA_texture_types.h" /* colorband */
#include "rgbTuple.h"
/*****************************************************************************/
@@ -63,6 +64,10 @@ PyObject *Material_CreatePyObject( Material * mat );
Material *Material_FromPyObject( PyObject * pyobj );
int Material_CheckPyObject( PyObject * pyobj );
+/* colorband tp_getseters */
+PyObject *EXPP_PyList_fromColorband( ColorBand *coba );
+int EXPP_Colorband_fromPyList( ColorBand *coba, PyObject * value );
+
/* Some functions needed by NMesh, Curve and friends */
PyObject *EXPP_PyList_fromMaterialList( Material ** matlist, int len,
int all );