Merge pull request #405 from hiroj/fix_package_export

asmdef をpackageに同梱するように変更
This commit is contained in:
ousttrue
2020-05-21 16:11:53 +09:00
committed by GitHub
2 changed files with 2 additions and 25 deletions

View File

@@ -180,30 +180,7 @@ namespace VRM.DevOnly.PackageExporter
string[] fileNames
)
{
CreateUnityPackageWithoutAsmDefs(outputDir, name, containsPath, basePath, fileNames);
CreateUnityPackageOnlyWithAsmDefs(outputDir, name, containsPath, basePath, fileNames);
}
public static void CreateUnityPackageWithoutAsmDefs(
string outputDir,
string name,
string[] containsPath,
string basePath,
string[] fileNames
)
{
CreateUnityPackageStandalone(outputDir, name, containsPath, basePath, fileNames, null, new string[] {".asmdef"});
}
public static void CreateUnityPackageOnlyWithAsmDefs(
string outputDir,
string name,
string[] containsPath,
string basePath,
string[] fileNames
)
{
CreateUnityPackageStandalone(outputDir, name + ".asmdef", containsPath, basePath, fileNames, new string[] {".asmdef"}, null);
CreateUnityPackageStandalone(outputDir, name, containsPath, basePath, fileNames, null, null);
}
public static void CreateUnityPackageStandalone(

View File

@@ -465,6 +465,7 @@ namespace VRM
AssetDatabase.ImportAsset(path.ToUnityRelativePath());
}
}
#endif
//ここで重複ボーン名のチェックをする
bool DuplicateBoneNameExists()
@@ -477,6 +478,5 @@ namespace VRM
return (duplicates.Any());
}
#endif
}
}