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:
-rw-r--r--release/scripts/weightpaint_invert.py8
-rw-r--r--source/blender/python/api2_2x/doc/Text3d.py4
2 files changed, 7 insertions, 5 deletions
diff --git a/release/scripts/weightpaint_invert.py b/release/scripts/weightpaint_invert.py
index 87aec77ad8d..cdae83a9d50 100644
--- a/release/scripts/weightpaint_invert.py
+++ b/release/scripts/weightpaint_invert.py
@@ -1,6 +1,6 @@
#!BPY
"""
-Name: 'Vertex Group Invert'
+Name: 'Invert Active Group'
Blender: 245
Group: 'WeightPaint'
Tooltip: 'Invert the active vertex group'
@@ -49,12 +49,14 @@ def vgroup_invert(ob_orig, me):
weights[i] = 1.0-w
me.addVertGroup(group_act)
+
rep = Blender.Mesh.AssignModes.REPLACE
vertList= [None]
for i,weight in enumerate(weights):
vertList[0] = i
- if weight != 0.0:
- me.assignVertsToGroup(group_act, vertList, weight, rep)
+ me.assignVertsToGroup(group_act, vertList, weight, rep)
+
+ me.activeGroup = group_act
me.update()
def main():
diff --git a/source/blender/python/api2_2x/doc/Text3d.py b/source/blender/python/api2_2x/doc/Text3d.py
index 78993b9e8f3..a7d8c585078 100644
--- a/source/blender/python/api2_2x/doc/Text3d.py
+++ b/source/blender/python/api2_2x/doc/Text3d.py
@@ -153,13 +153,13 @@ class Text3d:
@param width: The new text3d's width value.
"""
- def getgetExtrudeDepth():
+ def getExtrudeDepth():
"""
Get the text3d's ext1 value.
@rtype: float
"""
- def setgetExtrudeDepth(ext1):
+ def setExtrudeDepth(ext1):
"""
Set the text3d's ext1 value.
@rtype: None