mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-08 20:08:53 -05:00
Merge pull request #405 from hiroj/fix_package_export
asmdef をpackageに同梱するように変更
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -465,6 +465,7 @@ namespace VRM
|
||||
AssetDatabase.ImportAsset(path.ToUnityRelativePath());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
//ここで重複ボーン名のチェックをする
|
||||
bool DuplicateBoneNameExists()
|
||||
@@ -477,6 +478,5 @@ namespace VRM
|
||||
|
||||
return (duplicates.Any());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user