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 /mesh_tissue/uv_to_mesh.py | |
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 'mesh_tissue/uv_to_mesh.py')
-rw-r--r-- | mesh_tissue/uv_to_mesh.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesh_tissue/uv_to_mesh.py b/mesh_tissue/uv_to_mesh.py index 7c64b5f5..f502c147 100644 --- a/mesh_tissue/uv_to_mesh.py +++ b/mesh_tissue/uv_to_mesh.py @@ -141,7 +141,7 @@ class uv_to_mesh(Operator): try: for group in ob0.vertex_groups: index = group.index - ob.vertex_groups.new(group.name) + ob.vertex_groups.new(name=group.name) for p in me0.polygons: for vert, loop in zip(p.vertices, p.loop_indices): ob.vertex_groups[index].add([loop], group.weight(vert), "ADD") |