Skip to content
Snippets Groups Projects
Commit 856e33ce authored by Willian Padovani Germano's avatar Willian Padovani Germano
Browse files

BPython: small update to Types.c and the docs, to finish welcoming the new modules.

parent 8307f2f5
No related branches found
No related tags found
No related merge requests found
...@@ -54,6 +54,7 @@ PyObject *Types_Init (void) ...@@ -54,6 +54,7 @@ PyObject *Types_Init (void)
Text_Type.ob_type = &PyType_Type; Text_Type.ob_type = &PyType_Type;
Texture_Type.ob_type = &PyType_Type; Texture_Type.ob_type = &PyType_Type;
MTex_Type.ob_type = &PyType_Type;
submodule = Py_InitModule3 ("Blender.Types", Null_methods, M_Types_doc); submodule = Py_InitModule3 ("Blender.Types", Null_methods, M_Types_doc);
...@@ -89,6 +90,9 @@ PyObject *Types_Init (void) ...@@ -89,6 +90,9 @@ PyObject *Types_Init (void)
PyDict_SetItemString(dict, "LatticeType", (PyObject *)&Lattice_Type); PyDict_SetItemString(dict, "LatticeType", (PyObject *)&Lattice_Type);
PyDict_SetItemString(dict, "TextureType", (PyObject *)&Texture_Type);
PyDict_SetItemString(dict, "MTexType", (PyObject *)&MTex_Type);
/* External helper Types available to the main ones above */ /* External helper Types available to the main ones above */
PyDict_SetItemString(dict, "vectorType", (PyObject *)&vector_Type); PyDict_SetItemString(dict, "vectorType", (PyObject *)&vector_Type);
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
extern PyTypeObject Button_Type, Material_Type; extern PyTypeObject Button_Type, Material_Type;
extern PyTypeObject Texture_Type; extern PyTypeObject Texture_Type, MTex_Type;
extern PyTypeObject Object_Type; extern PyTypeObject Object_Type;
extern PyTypeObject Scene_Type; extern PyTypeObject Scene_Type;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# -n "Blender" --no-private --no-frames Blender.py \ # -n "Blender" --no-private --no-frames Blender.py \
# Types.py Scene.py Object.py NMesh.py Material.py Camera.py Lamp.py \ # Types.py Scene.py Object.py NMesh.py Material.py Camera.py Lamp.py \
# Armature.py Metaball.py Effect.py Curve.py Ipo.py World.py BGL.py Window.py \ # Armature.py Metaball.py Effect.py Curve.py Ipo.py World.py BGL.py Window.py \
# Draw.py Image.py Text.py # Draw.py Image.py Text.py Lattice.py Texture.py
""" """
The main Blender module. The main Blender module.
...@@ -19,25 +19,26 @@ The Blender Python API Reference ...@@ -19,25 +19,26 @@ The Blender Python API Reference
Submodules: Submodules:
----------- -----------
- L{Types}
- L{Scene}
- L{Object}
- L{NMesh}
- L{Material}
- L{Texture}
- L{Armature} - L{Armature}
- L{BGL}
- L{Camera} - L{Camera}
- L{Lamp}
- L{World}
- L{Metaball}
- L{Effect}
- L{Curve} - L{Curve}
- L{Ipo}
- L{BGL}
- L{Draw} - L{Draw}
- L{Window} - L{Effect}
- L{Image} - L{Image}
- L{Ipo}
- L{Lamp}
- L{Lattice}
- L{Material}
- L{Metaball}
- L{NMesh}
- L{Object}
- L{Scene}
- L{Text} - L{Text}
- L{Texture}
- L{Types}
- L{Window}
- L{World}
Introduction: Introduction:
------------- -------------
...@@ -53,8 +54,8 @@ The Blender Python API Reference ...@@ -53,8 +54,8 @@ The Blender Python API Reference
open-source language. open-source language.
@author: The Blender Python Team @author: The Blender Python Team
@requires: Blender 2.30 or newer. @requires: Blender 2.31 or newer.
@version: 0.2 @version: 0.3
@see: U{www.blender.org<http://www.blender.org>} @see: U{www.blender.org<http://www.blender.org>}
@see: U{projects.blender.org<http://projects.blender.org>} @see: U{projects.blender.org<http://projects.blender.org>}
@see: U{www.python.org<http://www.python.org>} @see: U{www.python.org<http://www.python.org>}
......
...@@ -49,4 +49,6 @@ objects. ...@@ -49,4 +49,6 @@ objects.
@var bufferType: Blender buffer. A contiguous piece of storage, used in BGL. @var bufferType: Blender buffer. A contiguous piece of storage, used in BGL.
@var constantType: Blender constant. A constant dictionary. @var constantType: Blender constant. A constant dictionary.
@var rgbTupleType: Blender rgbTuple. A (red, green, blue) triplet. @var rgbTupleType: Blender rgbTuple. A (red, green, blue) triplet.
@var TextureType: Blender Texture.
@var MTexType: Blender MTex -- it links materials to a texture.
""" """
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment