Explorar o código

Fix preview for NME

David Catuhe %!s(int64=5) %!d(string=hai) anos
pai
achega
98da6f86e2
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      nodeEditor/src/components/preview/previewManager.ts

+ 3 - 0
nodeEditor/src/components/preview/previewManager.ts

@@ -407,7 +407,10 @@ export class PreviewManager {
 
     private _updatePreview(serializationObject: any) {
         try {
+            let store = NodeMaterial.IgnoreTexturesAtLoadTime;
+            NodeMaterial.IgnoreTexturesAtLoadTime = false;
             let tempMaterial = NodeMaterial.Parse(serializationObject, this._scene);
+            NodeMaterial.IgnoreTexturesAtLoadTime = store;
 
             tempMaterial.backFaceCulling = this._globalState.backFaceCulling;
             tempMaterial.needDepthPrePass = this._globalState.depthPrePass;