Browse Source

Fix "explosion" particle system not using the node material

Popov72 5 năm trước cách đây
mục cha
commit
429f5895c5
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      nodeEditor/src/components/preview/previewManager.ts

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

@@ -398,6 +398,9 @@ export class PreviewManager {
             }
             if (prepareScene) {
                 this._prepareScene();
+            } else {
+                let serializationObject = this._nodeMaterial.serialize();
+                this._updatePreview(serializationObject);
             }
         });
     }