Skip to content

Commit

Permalink
fix 2020.3 compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Sep 11, 2023
1 parent 5147394 commit c93f68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/Scripts/Internal/GLTFMaterialHelper.cs
Expand Up @@ -86,7 +86,7 @@ public static void ValidateMaterialKeywords(Material material)
// material.SetKeyword("_SPECULAR", needsSpecular);
var isImplicitBlendMode = true;
const string blendModeProp = "_AutoSurfaceMode";
if (material.HasInt(blendModeProp))
if (material.HasProperty(blendModeProp))
{
var blendMode = material.GetInt(blendModeProp);
isImplicitBlendMode = blendMode == 0;
Expand Down

0 comments on commit c93f68c

Please sign in to comment.