* got rid of a warning in editipo.c:
changed "get_ipo(key, ..." to "get_ipo((ID *)key, ..." in line 107.
* changed insert_meshkey(Mesh *me) to insert_meshkey(Mesh *me, short offline):
To call this function from a script, so that it doesn't pop the
"relative / absolute" dialog window when the "offline" arg is non-zero.
Exppython:
* NMesh module:
- Added method NMesh.addMaterial(mat) to the NMesh module:
alternative safer (aka slower) way to add materials.
- Added optional arg to NMesh_update():
if given and equal to 1, the mesh normals are recalculated.
- Fixed NMesh.getVertexInfluences: it was segfaulting when a NULL bone was
linked to the vertex. Thanks to Jiba on the bf-python mailing list for
bug report and sample .blend file. Also made this method give an IndexError
when the vertex index is out of range.
* Material module:
Added specR, specG, specB vars for compatibility with the 2.25 API.
Pointed by Manuel Bastioni.
* Image module:
Exposed image width, height and depth parameters.
From a suggestion by jms.
* BPython Ref Doc:
- Small updates to reflect the above additions.
- Added info for the Bone type in the Armature doc.
This commit is contained in:
@@ -55,11 +55,12 @@ class Image:
|
||||
"""
|
||||
The Image object
|
||||
================
|
||||
This object gives access to Images in Blender. In the future it will allow
|
||||
direct read/write access to their pixel buffers, too.
|
||||
This object gives access to Images in Blender.
|
||||
@cvar name: The name of this Image object.
|
||||
@cvar filename: The filename (path) to the image file loaded into this Image
|
||||
object.
|
||||
@cvar size: The [width, height] dimensions of the image (in pixels).
|
||||
@cvar depth: The pixel depth of the image.
|
||||
@cvar xrep: Texture tiling: the number of repetitions in the x (horizontal)
|
||||
axis.
|
||||
@cvar yrep: Texture tiling: the number of repetitions in the y (vertical)
|
||||
@@ -78,6 +79,18 @@ class Image:
|
||||
@rtype: string
|
||||
"""
|
||||
|
||||
def getSize():
|
||||
"""
|
||||
Get the [width, height] dimensions (in pixels) of this image.
|
||||
@rtype: list of 2 ints
|
||||
"""
|
||||
|
||||
def getDepth():
|
||||
"""
|
||||
Get the pixel depth of this image.
|
||||
@rtype: int
|
||||
"""
|
||||
|
||||
def getXRep():
|
||||
"""
|
||||
Get the number of repetitions in the x (horizontal) axis for this Image.
|
||||
@@ -112,4 +125,3 @@ class Image:
|
||||
@type yrep: int
|
||||
@param yrep: The new value in [1, 16].
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user