X-Git-Url: http://git.osdn.net/view?p=meshio%2Fpymeshio.git;a=blobdiff_plain;f=blender26-meshio%2Fbl.py;fp=blender26-meshio%2Fbl.py;h=c668fa01bb9d81b4acab3709b71bbd3659d170ac;hp=4d5afdeb5f7d5a8d1508daaeb6f9e278d363a63a;hb=36d9293a117d66fa5820d9ea4066e96dfd179815;hpb=6c14b22b964d8551d723b75143a27d4a91418a38 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