浏览代码

Fix build

sebavan 5 年之前
父节点
当前提交
521b189306
共有 1 个文件被更改,包括 1 次插入1 次删除
  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()
     @serializeAsTexture()
     @expandToProperty("_markAllSubMeshesAsTexturesDirty")
     @expandToProperty("_markAllSubMeshesAsTexturesDirty")
-    public metallicReflectanceTexture: BaseTexture;
+    public metallicReflectanceTexture: Nullable<BaseTexture>;
 
 
     /**
     /**
      * Used to enable roughness/glossiness fetch from a separate channel depending on the current mode.
      * Used to enable roughness/glossiness fetch from a separate channel depending on the current mode.