mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-20 01:25:45 -05:00
refactor: the same unityPath can be used for three of them
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user