فهرست منبع

Fixed std.is warning (#1036)

Ryan Cleven 3 سال پیش
والد
کامیت
d92a473610
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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;