We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a03d5f2 commit f9ca373Copy full SHA for f9ca373
1 file changed
Runtime/Scripts/UniformMaps/BaseGraphMap.cs
@@ -212,10 +212,10 @@ public virtual bool DoubleSided
212
{
213
get { return
214
#if UNITY_2019_3_OR_NEWER
215
- !GraphicsSettings.currentRenderPipeline ?
+ (!GraphicsSettings.currentRenderPipeline && _material.HasProperty(cullModePropIdBuiltin)) ?
216
_material.GetInt(cullModePropIdBuiltin) == (int)CullMode.Off :
217
#endif
218
- _material.GetInt(cullPropId) == (int)CullMode.Off; }
+ _material.HasProperty(cullPropId) && _material.GetInt(cullPropId) == (int)CullMode.Off; }
219
set { SetDoubleSided(_material, value); }
220
}
221
0 commit comments