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:
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():