diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-31 18:16:04 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-31 18:16:04 +0400 |
commit | f823e6c4b5b7f6c1685c8e6e44b238e4227a0a70 (patch) | |
tree | 97c06ac2973956ffe6c1b909f27144a7b2ee5aab /io_import_scene_mhx.py | |
parent | fd7badedd24b4f552e23c3eeff3dae77d7cbedba (diff) |
vertex group update
Diffstat (limited to 'io_import_scene_mhx.py')
-rw-r--r-- | io_import_scene_mhx.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py index 00df0c8e..9f375a18 100644 --- a/io_import_scene_mhx.py +++ b/io_import_scene_mhx.py @@ -1266,9 +1266,7 @@ def parseVertexGroup(ob, me, args, tokens): group = ob.vertex_groups.new(grpName) group.name = grpName loadedData['VertexGroup'][grpName] = group - for (key, val, sub) in tokens: - if key == 'wv': - ob.vertex_groups.assign(int(val[0]), group, float(val[1]), 'REPLACE') + ob.vertex_groups.assign([int(val[0]) for (key, val, sub) in tokens if key == 'wv'], group, float(val[1]), 'REPLACE') return |