BPython: small update to Types.c and the docs, to finish welcoming the new modules.
This commit is contained in:
		@@ -53,7 +53,8 @@ PyObject *Types_Init (void)
 | 
			
		||||
	/* Another one that needs to be here: */
 | 
			
		||||
	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);
 | 
			
		||||
 | 
			
		||||
@@ -89,6 +90,9 @@ PyObject *Types_Init (void)
 | 
			
		||||
 | 
			
		||||
  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 */
 | 
			
		||||
 | 
			
		||||
  PyDict_SetItemString(dict, "vectorType",   (PyObject *)&vector_Type);
 | 
			
		||||
 
 | 
			
		||||
@@ -36,7 +36,7 @@
 | 
			
		||||
 | 
			
		||||
extern PyTypeObject Button_Type, Material_Type;
 | 
			
		||||
 | 
			
		||||
extern PyTypeObject Texture_Type;
 | 
			
		||||
extern PyTypeObject Texture_Type, MTex_Type;
 | 
			
		||||
 | 
			
		||||
extern PyTypeObject Object_Type;
 | 
			
		||||
extern PyTypeObject Scene_Type;
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,7 @@
 | 
			
		||||
# -n "Blender" --no-private --no-frames Blender.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 \
 | 
			
		||||
# Draw.py Image.py Text.py
 | 
			
		||||
# Draw.py Image.py Text.py Lattice.py Texture.py
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
The main Blender module.
 | 
			
		||||
@@ -19,25 +19,26 @@ The Blender Python API Reference
 | 
			
		||||
 Submodules:
 | 
			
		||||
 -----------
 | 
			
		||||
 | 
			
		||||
  - L{Types}
 | 
			
		||||
  - L{Scene}
 | 
			
		||||
  - L{Object}
 | 
			
		||||
  - L{NMesh}
 | 
			
		||||
  - L{Material}
 | 
			
		||||
  - L{Texture}
 | 
			
		||||
  - L{Armature}
 | 
			
		||||
  - L{Camera}
 | 
			
		||||
  - L{Lamp}
 | 
			
		||||
  - L{World}
 | 
			
		||||
  - L{Metaball}
 | 
			
		||||
  - L{Effect}
 | 
			
		||||
  - L{Curve}
 | 
			
		||||
  - L{Ipo}
 | 
			
		||||
  - L{BGL}
 | 
			
		||||
  - L{Camera}
 | 
			
		||||
  - L{Curve}
 | 
			
		||||
  - L{Draw}
 | 
			
		||||
  - L{Window}
 | 
			
		||||
  - L{Effect}
 | 
			
		||||
  - L{Image}
 | 
			
		||||
  - L{Ipo}
 | 
			
		||||
  - L{Lamp}
 | 
			
		||||
  - L{Lattice}
 | 
			
		||||
  - L{Material}
 | 
			
		||||
  - L{Metaball}
 | 
			
		||||
  - L{NMesh}
 | 
			
		||||
  - L{Object}
 | 
			
		||||
  - L{Scene}
 | 
			
		||||
  - L{Text}
 | 
			
		||||
  - L{Texture}
 | 
			
		||||
  - L{Types}
 | 
			
		||||
  - L{Window}
 | 
			
		||||
  - L{World}
 | 
			
		||||
 | 
			
		||||
 Introduction:
 | 
			
		||||
 -------------
 | 
			
		||||
@@ -53,8 +54,8 @@ The Blender Python API Reference
 | 
			
		||||
 open-source language.
 | 
			
		||||
 | 
			
		||||
@author: The Blender Python Team
 | 
			
		||||
@requires: Blender 2.30 or newer.
 | 
			
		||||
@version: 0.2
 | 
			
		||||
@requires: Blender 2.31 or newer.
 | 
			
		||||
@version: 0.3
 | 
			
		||||
@see: U{www.blender.org<http://www.blender.org>}
 | 
			
		||||
@see: U{projects.blender.org<http://projects.blender.org>}
 | 
			
		||||
@see: U{www.python.org<http://www.python.org>}
 | 
			
		||||
 
 | 
			
		||||
@@ -49,4 +49,6 @@ objects.
 | 
			
		||||
@var bufferType: Blender buffer. A contiguous piece of storage, used in BGL.
 | 
			
		||||
@var constantType: Blender constant. A constant dictionary.
 | 
			
		||||
@var rgbTupleType: Blender rgbTuple. A (red, green, blue) triplet.
 | 
			
		||||
@var TextureType: Blender Texture.
 | 
			
		||||
@var MTexType: Blender MTex -- it links materials to a texture.
 | 
			
		||||
"""
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user