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:
authorCampbell Barton <ideasman42@gmail.com>2007-11-19 13:49:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-11-19 13:49:12 +0300
commit0b0542c7851f06f6ab1f6b5cc28db511657eec73 (patch)
tree6d545fc901ab7074a87098c142c0f17082dd6517 /release
parentcf60bf576b741f031450886c5dc4f0a11bbd4d06 (diff)
typo in Text3d, weightpaint_invert wasnt working properly
Diffstat (limited to 'release')
-rw-r--r--release/scripts/weightpaint_invert.py8
1 files changed, 5 insertions, 3 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():