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>2006-07-09 18:22:21 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-07-09 18:22:21 +0400
commit158d430ca9668e19b8b57a62cae7f3e855e152dd (patch)
tree4de3c4b196687218b48d1732ee5a76355ab79378 /release/scripts/mesh_boneweight_copy.py
parent289259c09c6c8cb631765ec18591458412ad07d5 (diff)
updated mesh boneweight copy not to error with no selection.]
updated obdatacopier to support mesh objects and added a more general way of choosing data to show or ignore in the button list.
Diffstat (limited to 'release/scripts/mesh_boneweight_copy.py')
-rwxr-xr-xrelease/scripts/mesh_boneweight_copy.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/release/scripts/mesh_boneweight_copy.py b/release/scripts/mesh_boneweight_copy.py
index 06e42b6f96d..fd441d58d55 100755
--- a/release/scripts/mesh_boneweight_copy.py
+++ b/release/scripts/mesh_boneweight_copy.py
@@ -195,8 +195,7 @@ def worldspace_verts(me, ob):
def subdivMesh(me, subdivs):
oldmode = Mesh.Mode()
Mesh.Mode(Mesh.SelectModes['FACE'])
- for f in me.faces: f.sel = 1
-
+ me.sel= 1
for i in xrange(subdivs):
me.subdivide(0)
Mesh.Mode(oldmode)
@@ -206,7 +205,9 @@ def main():
print '\nStarting BoneWeight Copy...'
scn= Blender.Scene.GetCurrent()
contextSel= Object.GetSelected()
-
+ if not contextSel:
+ Blender.Draw.PupMenu('Error%t|2 or more mesh objects need to be selected.|aborting.')
+ return
PREF_QUALITY= Blender.Draw.Create(3)
PREF_NO_XCROSS= Blender.Draw.Create(0)