From 96ab0d0c67765f672d980f72c5f334523af9b827 Mon Sep 17 00:00:00 2001 From: "guzhu@fairygui.com" Date: Wed, 31 Jan 2024 15:48:51 +0800 Subject: [PATCH] fix: material lost rendermode after reload --- src/layaAir/laya/loaders/MaterialLoader.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/layaAir/laya/loaders/MaterialLoader.ts b/src/layaAir/laya/loaders/MaterialLoader.ts index 162f8722de..a9a9aa539f 100644 --- a/src/layaAir/laya/loaders/MaterialLoader.ts +++ b/src/layaAir/laya/loaders/MaterialLoader.ts @@ -62,6 +62,7 @@ class MaterialLoader implements IResourceLoader { obsoluteInst.setShaderName(mat._shader.name); mat._shaderValues.cloneTo(obsoluteInst._shaderValues); obsoluteInst.renderQueue = mat.renderQueue; + obsoluteInst.materialRenderMode = mat.materialRenderMode; obsoluteInst.obsolute = false; mat.destroy(); return obsoluteInst;