Explorar o código

Fixed std.is warning (#1036)

Ryan Cleven %!s(int64=3) %!d(string=hai) anos
pai
achega
d92a473610
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      h3d/mat/PbrMaterial.hx

+ 1 - 1
h3d/mat/PbrMaterial.hx

@@ -198,7 +198,7 @@ class PbrMaterial extends Material {
 		mainPass.enableLights = true;
 
 		// Backward compatibility
-		if(Std.is((props:Dynamic).culling, Bool))
+		if(Std.isOfType((props:Dynamic).culling, Bool))
 			props.culling = (props:Dynamic).culling ? Back : None;
 		#if editor
 		if( (props:Dynamic).colorMask == null ) props.colorMask = 15;