Blender Git Loki

Git Commits -> Revision 3f87319

Revision 3f87319 by Ken Hughes (master)
September 8, 2008, 23:39 (GMT)
Python API
----------
Add access to MTex objects from Lamps and Worlds (first pass). Since the
MTex structure is slightly difference between materials, lamps, and worlds,
a field is added to the BPy MTex object to distinquish which type it wraps.

Attempting to access attributes which are unique to materials for lamp or
world MTex objects throw an exception. The next pass will implement MTex
attributes which are specific to Lamps and Worlds.

A new attribute (textures) is added to each module. It is compatible with
the previous Material.getTextures(), which returns a tuple of either MTex
objects or None. Surprised we never added an attribute for this before in
all the changes and refactoring.

Commit Details:

Full Hash: 3f87319428ff6b7b6fc0eb6df8c6ecaad49b49cc
SVN Revision: 16427
Parent Commit: de48280
Lines Changed: +357, -155

9 Modified Paths:

/source/blender/python/api2_2x/doc/Lamp.py (+2, -0) (Diff)
/source/blender/python/api2_2x/doc/Material.py (+3, -1) (Diff)
/source/blender/python/api2_2x/doc/Texture.py (+78, -42) (Diff)
/source/blender/python/api2_2x/doc/World.py (+2, -0) (Diff)
/source/blender/python/api2_2x/Lamp.c (+30, -0) (Diff)
/source/blender/python/api2_2x/Material.c (+85, -15) (Diff)
/source/blender/python/api2_2x/MTex.c (+122, -95) (Diff)
/source/blender/python/api2_2x/MTex.h (+6, -2) (Diff)
/source/blender/python/api2_2x/World.c (+29, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021