mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-20 01:25:45 -05:00
Merge pull request #1846 from ousttrue/fix_unity_2019
[Unity-2019] fix `??=`.
This commit is contained in:
@@ -151,7 +151,10 @@ namespace UniGLTF
|
||||
{
|
||||
name = TextureImportName.GetUnityObjectName(TextureImportTypes.StandardMap, gltfTexture.name, gltfImage.uri);
|
||||
}
|
||||
sampler ??= TextureSamplerUtil.CreateSampler(data.GLTF, occlusionTextureIndex.Value);
|
||||
if (sampler == null)
|
||||
{
|
||||
sampler = TextureSamplerUtil.CreateSampler(data.GLTF, occlusionTextureIndex.Value);
|
||||
}
|
||||
getOcclusionAsync = () => Task.FromResult(GetImageBytesFromImageIndex(data, imageIndex.Value));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user