mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-10-25 19:57:54 -05:00
Merge pull request #961 from Santarh/refactorTextureSerializer
Refactoring Serializing Textures
This commit is contained in:
@@ -130,7 +130,7 @@ namespace VRM
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="path"></param>
|
||||
/// <param name="settings"></param>
|
||||
@@ -225,7 +225,7 @@ namespace VRM
|
||||
using (var exporter = new VRMExporter(gltf))
|
||||
{
|
||||
exporter.Prepare(target);
|
||||
exporter.Export(settings.MeshExportSettings, AssetTextureUtil.IsTextureEditorAsset, AssetTextureUtil.GetTextureBytesWithMime);
|
||||
exporter.Export(settings.MeshExportSettings, new EditorTextureSerializer());
|
||||
}
|
||||
var bytes = gltf.ToGlbBytes();
|
||||
Debug.LogFormat("Export elapsed {0}", sw.Elapsed);
|
||||
|
||||
Reference in New Issue
Block a user