renamed Blender.Image.SetCurrent(img) to img.makeCurrent() to be consistant with scene.

applied patch #4998 (array count), as well as adding other array settings, updated documentation as well.
added EXPP_setVec3Clamped() as a way to set a vector from getset attrs (used with array offset and scale)
This commit is contained in:
2006-09-17 02:31:16 +00:00
parent eaad4e4129
commit e472a3d852
6 changed files with 177 additions and 74 deletions

View File

@@ -65,16 +65,6 @@ def GetCurrent ():
@return: The Current Blender Image, If there is no current image it returns None.
"""
def SetCurrent (image):
"""
Set the currently displayed Image from Blenders UV/Image window.
When multiple images are displayed, the last active UV/Image windows image is used.
@type image: Blender Image
@param image: The image to display in the image view.
@rtype: bool
@return: True if the current image could be set, if no window was available, it will be set to False.
"""
class Image:
"""
The Image object
@@ -337,3 +327,12 @@ class Image:
@rtype: none
@type mode: int
"""
def SetCurrent (image):
"""
Set the currently displayed Image from Blenders UV/Image window.
When multiple images are displayed, the last active UV/Image windows image is used.
@type image: Blender Image
@param image: The image to display in the image view.
@rtype: bool
@return: True if the current image could be set, if no window was available, return False.
"""