add PMX Writer
This commit is contained in:
@@ -138,7 +138,7 @@ namespace LibMMD.Unity3D
|
||||
private const string ColliderNameTail = "Collider";
|
||||
private const float HalfPIDeg = Mathf.PI * Mathf.Rad2Deg / 2;
|
||||
private const int MaxTextureSize = 1024;
|
||||
private readonly ModelReadConfig modelReadConfig = new ModelReadConfig { GlobalToonPath = "" };
|
||||
private readonly ModelConfig modelReadConfig = new ModelConfig { GlobalToonPath = "" };
|
||||
|
||||
public static async Task<MMDModel> ImportModel(string filePath, bool autoShowModel = true)
|
||||
{
|
||||
@@ -508,7 +508,7 @@ namespace LibMMD.Unity3D
|
||||
switch (op.Type)
|
||||
{
|
||||
case SkinningOperator.SkinningType.SkinningBdef1:
|
||||
var bdef1 = (SkinningOperator.Bdef1)op.Param;
|
||||
var b def1 = (SkinningOperator.Bdef1)op.Param;
|
||||
ret.boneIndex0 = bdef1.BoneId;
|
||||
ret.weight0 = 1.0f;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user