Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

_MMD_SHAPE vertex group not updated #27

Open
Hogarth-MMD opened this issue Jun 3, 2015 · 0 comments
Open

_MMD_SHAPE vertex group not updated #27

Hogarth-MMD opened this issue Jun 3, 2015 · 0 comments

Comments

@Hogarth-MMD
Copy link
Contributor

The _MMD_SHAPE vertex group is not updated after someone creates a new shape key in Blender. This causes the shape key to be exported incorrectly. I made a bug fix for this:
Googleが翻訳します:
誰かがBlenderの新しいシェイプキーを作成した後_MMD_SHAPE頂点グループは更新されません。これは、シェイプキーが誤ってエクスポートされます。私はこのためにバグ修正を行いました。

import bpy

active = bpy.context.active_object

# deletes the _MMD_SHAPE vertex group. An essential bug fix for exporting shape keys which were created in Blender.
if '_MMD_SHAPE' in active.vertex_groups.keys():
    active.vertex_groups.remove(active.vertex_groups['_MMD_SHAPE'])
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant