Skip to content

Commit

Permalink
1.4.1
Browse files Browse the repository at this point in the history
Fixed import of characters with _Motion in the name.
  • Loading branch information
soupday committed Dec 2, 2022
1 parent 4f611c7 commit cfca5e9
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions Editor/RL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -532,24 +532,15 @@ public static void ApplyAnimatorController(CharacterInfo info, AnimatorControlle
}

public static GameObject CreatePrefabFromFbx(CharacterInfo info, GameObject fbx, out GameObject sceneInstance)
{
bool noMotion = !info.name.iContains("_Motion");
sceneInstance = null;

if (noMotion)
{
if (info.path.iContains("_lod") && CountLODs(fbx) > 1)
{
// Set the Prefab
if (info.path.iContains("_lod") && CountLODs(fbx) > 1)
{
return CreateOneLODPrefabFromModel(info, fbx, "", out sceneInstance);
}
else
{
return CreatePrefabFromModel(info, fbx, out sceneInstance);
}
return CreateOneLODPrefabFromModel(info, fbx, "", out sceneInstance);
}
else
{
return CreatePrefabFromModel(info, fbx, out sceneInstance);
}

return null;
}

/// <summary>
Expand Down

0 comments on commit cfca5e9

Please sign in to comment.