Skip to content

Commit f9ca373

Browse files
committed
fixed biRP material export for older unity versions
1 parent a03d5f2 commit f9ca373

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Runtime/Scripts/UniformMaps/BaseGraphMap.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ public virtual bool DoubleSided
212212
{
213213
get { return
214214
#if UNITY_2019_3_OR_NEWER
215-
!GraphicsSettings.currentRenderPipeline ?
215+
(!GraphicsSettings.currentRenderPipeline && _material.HasProperty(cullModePropIdBuiltin)) ?
216216
_material.GetInt(cullModePropIdBuiltin) == (int)CullMode.Off :
217217
#endif
218-
_material.GetInt(cullPropId) == (int)CullMode.Off; }
218+
_material.HasProperty(cullPropId) && _material.GetInt(cullPropId) == (int)CullMode.Off; }
219219
set { SetDoubleSided(_material, value); }
220220
}
221221

0 commit comments

Comments
 (0)