diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-25 15:48:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-25 15:48:10 +0300 |
commit | 8c872148d0648968ddbbb5235e5479717441a38d (patch) | |
tree | b0332d24d3e87e7b548b110df01654de093066ad | |
parent | fe16455af24b24c3c0cdbe12949eea6a039c2c70 (diff) |
patch [#25616] fix for changed vertex group assignment API
from Lawrence D'Oliveiro (ldo)
-rw-r--r-- | io_import_scene_lwo.py | 2 | ||||
-rw-r--r-- | io_scene_obj/export_obj.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/io_import_scene_lwo.py b/io_import_scene_lwo.py index cba18f94..73eda016 100644 --- a/io_import_scene_lwo.py +++ b/io_import_scene_lwo.py @@ -1078,7 +1078,7 @@ def build_objects(object_layers, object_surfs, object_tags, object_name, add_sub vgroup.name= wmap_key wlist= layer_data.wmaps[wmap_key] for pvp in wlist: - ob.vertex_groups.assign([pvp[0]], vgroup, pvp[1], 'REPLACE') + vgroup.add((pvp[0], ), pvp[1], 'REPLACE') # Create the Shape Keys (LW's Endomorphs). if len(layer_data.morphs) > 0: diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py index 9bfb196a..7fdff183 100644 --- a/io_scene_obj/export_obj.py +++ b/io_scene_obj/export_obj.py @@ -67,7 +67,7 @@ def write_mtl(scene, filepath, copy_images, mtl_dict): mtl_dict_values.sort(key=lambda m: m[0]) # Write material/image combinations we have used. - # Using mtl_dict.values() directly gives un-pradictable order. + # Using mtl_dict.values() directly gives un-predictable order. for mtl_mat_name, mat, img in mtl_dict_values: # Get the Blender data for the material and the image. |