Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-12-07 04:14:38 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-12-07 04:14:38 +0300
commitec5d4c9a379f688f5350d42649fecf4023e4a805 (patch)
tree481f7ce7b86cb4610caf290fe2954694d76de441 /io_export_unreal_psk_psa.py
parent259f694d1489dfb58540d5fd21de1c6903581a02 (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_export_unreal_psk_psa.py')
-rw-r--r--io_export_unreal_psk_psa.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py
index 40840e90..2f0a9fe2 100644
--- a/io_export_unreal_psk_psa.py
+++ b/io_export_unreal_psk_psa.py
@@ -2170,7 +2170,7 @@ def rebuildmesh(obj):
# vertices weight groups
for vgroup in vertGroups:
- group = obmesh.vertex_groups.new(vgroup)
+ group = obmesh.vertex_groups.new(name=vgroup)
for v in vertGroups[vgroup]:
group.add([v[0]], v[1], 'ADD') # group.add(array[vertex id],weight,add)
bpy.context.scene.objects.link(obmesh)