mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-20 17:45:22 -05:00
修正
This commit is contained in:
@@ -63,7 +63,8 @@ namespace UniGLTF
|
||||
}
|
||||
}
|
||||
|
||||
protected TextureExporter TextureExporter { get; private set; }
|
||||
protected ITextureExporter TextureExporter => _textureExporter;
|
||||
private TextureExporter _textureExporter;
|
||||
|
||||
GltfExportSettings m_settings;
|
||||
|
||||
@@ -234,7 +235,7 @@ namespace UniGLTF
|
||||
#region Materials and Textures
|
||||
Materials = uniqueUnityMeshes.GetUniqueMaterials().ToList();
|
||||
|
||||
TextureExporter = new TextureExporter(textureSerializer);
|
||||
_textureExporter = new TextureExporter(textureSerializer);
|
||||
|
||||
var materialExporter = CreateMaterialExporter();
|
||||
_gltf.materials = Materials.Select(x => materialExporter.ExportMaterial(x, TextureExporter, m_settings)).ToList();
|
||||
@@ -376,7 +377,7 @@ namespace UniGLTF
|
||||
ExportExtensions(textureSerializer);
|
||||
|
||||
// Extension で Texture が増える場合があるので最後に呼ぶ
|
||||
var exported = TextureExporter.Export();
|
||||
var exported = _textureExporter.Export();
|
||||
for (var exportedTextureIdx = 0; exportedTextureIdx < exported.Count; ++exportedTextureIdx)
|
||||
{
|
||||
var (unityTexture, colorSpace) = exported[exportedTextureIdx];
|
||||
|
||||
Reference in New Issue
Block a user