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 /add_advanced_objects_panels | |
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 'add_advanced_objects_panels')
-rw-r--r-- | add_advanced_objects_panels/unfold_transition.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/add_advanced_objects_panels/unfold_transition.py b/add_advanced_objects_panels/unfold_transition.py index 44051bf0..f832c21d 100644 --- a/add_advanced_objects_panels/unfold_transition.py +++ b/add_advanced_objects_panels/unfold_transition.py @@ -154,7 +154,7 @@ class Set_Up_Fold(Operator): b.select = False b.layers = vis b.parent = root - vg = obj.vertex_groups.new(b.name) + vg = obj.vertex_groups.new(name=b.name) vg.add(f.vertices, 1, "ADD") bpy.ops.object.mode_set() |