Skip to content

Commit

Permalink
Merge pull request #405 from hiroj/fix_package_export
Browse files Browse the repository at this point in the history
asmdef をpackageに同梱するように変更
  • Loading branch information
ousttrue authored May 21, 2020
2 parents 8a3921e + c83a748 commit 582461e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 25 deletions.
25 changes: 1 addition & 24 deletions Assets/VRM/UniVRM/DevOnly/Editor/VRMExportUnityPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,30 +180,7 @@ public static void CreateUnityPackage(
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(
Expand Down
2 changes: 1 addition & 1 deletion Assets/VRM/UniVRM/Scripts/Format/VRMExportSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ void Export(string path, List<GameObject> destroy)
AssetDatabase.ImportAsset(path.ToUnityRelativePath());
}
}
#endif

//ここで重複ボーン名のチェックをする
bool DuplicateBoneNameExists()
Expand All @@ -477,6 +478,5 @@ bool DuplicateBoneNameExists()

return (duplicates.Any());
}
#endif
}
}

0 comments on commit 582461e

Please sign in to comment.