diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-12-07 04:14:38 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-12-07 04:14:38 +0300 |
commit | ec5d4c9a379f688f5350d42649fecf4023e4a805 (patch) | |
tree | 481f7ce7b86cb4610caf290fe2954694d76de441 /io_scene_obj | |
parent | 259f694d1489dfb58540d5fd21de1c6903581a02 (diff) |
Fix T58896: Addons with ob.vertex_groups.new without name keywork
Original report: OBJ file import fails for objects with vertex groups defined when polygroups option is selected
Diffstat (limited to 'io_scene_obj')
-rw-r--r-- | io_scene_obj/import_obj.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py index c623290f..3185e5c2 100644 --- a/io_scene_obj/import_obj.py +++ b/io_scene_obj/import_obj.py @@ -710,7 +710,7 @@ def create_mesh(new_objects, # content of the vertex_groups. If the user selects to NOT have vertex groups saved then # the following test will never run for group_name, group_indices in vertex_groups.items(): - group = ob.vertex_groups.new(group_name.decode('utf-8', "replace")) + group = ob.vertex_groups.new(name=group_name.decode('utf-8', "replace")) group.add(group_indices, 1.0, 'REPLACE') |