X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=blender26-meshio%2Fbl.py;h=c668fa01bb9d81b4acab3709b71bbd3659d170ac;hb=36d9293a117d66fa5820d9ea4066e96dfd179815;hp=4d5afdeb5f7d5a8d1508daaeb6f9e278d363a63a;hpb=5d8a713d1daaa9dcaac772e7677d8e0f1419806a;p=meshio%2Fpymeshio.git diff --git a/blender26-meshio/bl.py b/blender26-meshio/bl.py index 4d5afde..c668fa0 100644 --- a/blender26-meshio/bl.py +++ b/blender26-meshio/bl.py @@ -242,6 +242,8 @@ class object: @staticmethod def assignVertexGroup(o, name, index, weight): + if name not in o.vertex_groups: + o.vertex_groups.new(name) o.vertex_groups[name].add([index], weight, 'ADD') @staticmethod