Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillian Padovani Germano <wpgermano@gmail.com>2005-02-02 06:38:31 +0300
committerWillian Padovani Germano <wpgermano@gmail.com>2005-02-02 06:38:31 +0300
commit41b251fab087f6f6dbea4439136949c392c2019d (patch)
treeac538bf5626308e33ca00707c8e60c46561b351a /source/blender/python/api2_2x/doc
parent78f133b8a7bc1db280d5d052bf83d7ea959cd1cb (diff)
BPython:
- Fix related to bug #2157: crash in Blender.Image.image.reload() method. "G.sima" was not being checked for validity. Fix by Joilnen B. Leite (pidhash). Thanks! http://projects.blender.org/tracker/?func=detail&atid=125&aid=2157&group_id=9 - Added optional argument to Blender.Object.object.getData() method: getData(only_name = True) or (only_name = 1) or (1) will return only the obdata name, not a wrapper for the given struct. This is a test based on a request by Campbell Barton who submitted code for his proposed .getDataName() method (thanks!). - doc updates and small fixes.
Diffstat (limited to 'source/blender/python/api2_2x/doc')
-rw-r--r--source/blender/python/api2_2x/doc/NMesh.py8
-rw-r--r--source/blender/python/api2_2x/doc/Object.py17
2 files changed, 11 insertions, 14 deletions
diff --git a/source/blender/python/api2_2x/doc/NMesh.py b/source/blender/python/api2_2x/doc/NMesh.py
index ed016880c24..4b81dcd5831 100644
--- a/source/blender/python/api2_2x/doc/NMesh.py
+++ b/source/blender/python/api2_2x/doc/NMesh.py
@@ -321,13 +321,9 @@ class NMesh:
def removeEdge():
"""
- remove an edge between two vertices.
+ Remove an edge between two vertices.
All faces using this edge are removed from faces list.
You can only call this method if mesh has edge data.
- @type v1: NMVert
- @param v1: the first vertex of the edge.
- @type v2: NMVert
- @param v2: the second vertex of the edge.
"""
def addFace(face):
@@ -342,8 +338,6 @@ class NMesh:
def removeFace():
"""
Remove a face for face list and remove edges no more used by any other face (if edge data exists).
- @type face: NMFace
- @param face: the face to add to the mesh.
"""
def addEdgesData():
diff --git a/source/blender/python/api2_2x/doc/Object.py b/source/blender/python/api2_2x/doc/Object.py
index c2d1db093ca..ddf8269fbae 100644
--- a/source/blender/python/api2_2x/doc/Object.py
+++ b/source/blender/python/api2_2x/doc/Object.py
@@ -3,8 +3,8 @@
"""
The Blender.Object submodule
-B{New}: 'old_worldspace' parameter in L{Object.Object.getMatrix}, which now
-defaults to 'worldspace'.
+B{New}: L{Object.getData} now accepts an optional bool keyword argument to
+define if the user wants the data object or just its name.
Object
======
@@ -186,13 +186,16 @@ class Object:
other value, or no value at all will update the scene hierarchy.
"""
- def getData():
+ def getData(only_name = False):
"""
- Returns the Datablock object containing the object's data. For example the
- Mesh, Lamp or the Camera.
- @rtype: Object type specific
+ Returns the Datablock object (new: or just its name) containing the
+ object's data. For example the Mesh, Lamp or the Camera.
+ @type only_name: bool
+ @param only_name: if True on nonzero, only the name of the data object
+ is returned.
+ @rtype: Object type specific or string
@return: Depending on the type of the Object, it returns a specific object
- for the data requested.
+ for the data requested. If only_name is True, it returns a string.
"""
def getDeltaLocation():