mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-30 22:46:44 -05:00
refactor: the same unityPath can be used for three of them
This commit is contained in:
parent
3c390fe0f3
commit
bf69c34cfc
|
|
@ -17,11 +17,13 @@ namespace VRM
|
|||
{
|
||||
foreach (string path in importedAssets)
|
||||
{
|
||||
if (!UnityPath.FromUnityPath(path).IsFileExists) {
|
||||
var unityPath = UnityPath.FromUnityPath(path);
|
||||
|
||||
if (!unityPath.IsFileExists) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (UnityPath.FromUnityPath(path).IsStreamingAsset)
|
||||
if (unityPath.IsStreamingAsset)
|
||||
{
|
||||
Debug.LogFormat("Skip StreamingAssets: {0}", path);
|
||||
continue;
|
||||
|
|
@ -32,7 +34,7 @@ namespace VRM
|
|||
{
|
||||
try
|
||||
{
|
||||
ImportVrm(UnityPath.FromUnityPath(path));
|
||||
ImportVrm(unityPath);
|
||||
}
|
||||
catch (NotVrm0Exception)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user