Save blendShape assets to files

This commit is contained in:
ousttrue
2018-08-26 23:45:53 +09:00
parent 15e19691e7
commit f1828fe903
2 changed files with 16 additions and 1 deletions

View File

@@ -79,6 +79,21 @@ namespace VRM
yield return Meta;
}
protected override UnityPath GetAssetPath(UnityPath prefabPath, UnityEngine.Object o)
{
if (o is BlendShapeAvatar
|| o is BlendShapeClip)
{
var dir = prefabPath.GetAssetFolder(".BlendShapes");
var assetPath = dir.Child(o.name.EscapeFilePath() + ".asset");
return assetPath;
}
else
{
return base.GetAssetPath(prefabPath, o);
}
}
#endif
}
}

Submodule UniGLTF updated: 86f006b8f0...d0eedb344e