Browse Source

Fix build

sebavan 5 năm trước cách đây
mục cha
commit
521b189306
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Materials/PBR/pbrMaterial.ts

+ 1 - 1
src/Materials/PBR/pbrMaterial.ts

@@ -196,7 +196,7 @@ export class PBRMaterial extends PBRBaseMaterial {
      */
     @serializeAsTexture()
     @expandToProperty("_markAllSubMeshesAsTexturesDirty")
-    public metallicReflectanceTexture: BaseTexture;
+    public metallicReflectanceTexture: Nullable<BaseTexture>;
 
     /**
      * Used to enable roughness/glossiness fetch from a separate channel depending on the current mode.