mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-13 22:09:53 -05:00
Rewrite ??=.
This is cause `CS1525: Invalid expression term '='` in Unity-2019. #1840
This commit is contained in:
parent
1df83cc77e
commit
2ec90edf66
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user