mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-14 06:19:47 -05:00
Merge pull request #2355 from Santarh/maintainExtensionSupportFlags
Maintain extension support flags when migrating a vrm0.x model.
This commit is contained in:
commit
0e78cc7db9
|
|
@ -15,5 +15,11 @@
|
|||
/// https://docs.unity3d.com/Packages/com.unity.cloud.ktx@3.2/manual/creating-textures.html
|
||||
/// </summary>
|
||||
public bool IsAllTexturesYFlipped { get; set; }
|
||||
|
||||
public void CopyValueFrom(ExtensionSupportFlags src)
|
||||
{
|
||||
ConsiderKhrTextureBasisu = src.ConsiderKhrTextureBasisu;
|
||||
IsAllTexturesYFlipped = src.IsAllTexturesYFlipped;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -100,6 +100,7 @@ namespace UniVRM10
|
|||
|
||||
// マイグレーション結果をパースする
|
||||
var migratedData = new GlbLowLevelParser(data.TargetPath, migrated).Parse();
|
||||
migratedData.ExtensionSupportFlags.CopyValueFrom(data.ExtensionSupportFlags);
|
||||
try
|
||||
{
|
||||
if (!UniGLTF.Extensions.VRMC_vrm.GltfDeserializer.TryGet(migratedData.GLTF.extensions, out VRMC_vrm vrm))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user