|
@@ -2,7 +2,6 @@ import { Nullable } from "babylonjs/types";
|
|
|
import { Observable } from 'babylonjs/Misc/observable';
|
|
|
import { LogEntry } from './components/log/logComponent';
|
|
|
import { NodeMaterialBlock } from 'babylonjs/Materials/Node/nodeMaterialBlock';
|
|
|
-import { PreviewType } from './components/preview/previewType';
|
|
|
import { DataStorage } from 'babylonjs/Misc/dataStorage';
|
|
|
import { Color4 } from 'babylonjs/Maths/math.color';
|
|
|
import { GUINode } from './diagram/guiNode';
|
|
@@ -38,7 +37,6 @@ export class GlobalState {
|
|
|
onGetNodeFromBlock: (block: NodeMaterialBlock) => GUINode;
|
|
|
onGridSizeChanged = new Observable<void>();
|
|
|
onExposePortOnFrameObservable = new Observable<GUINode>();
|
|
|
- previewType: PreviewType;
|
|
|
previewFile: File;
|
|
|
listOfCustomPreviewFiles: File[] = [];
|
|
|
rotatePreview: boolean;
|
|
@@ -56,7 +54,6 @@ export class GlobalState {
|
|
|
customSave?: {label: string, action: (data: string) => Promise<void>};
|
|
|
|
|
|
public constructor() {
|
|
|
- this.previewType = DataStorage.ReadNumber("PreviewType", PreviewType.Box);
|
|
|
this.backFaceCulling = DataStorage.ReadBoolean("BackFaceCulling", true);
|
|
|
this.depthPrePass = DataStorage.ReadBoolean("DepthPrePass", false);
|
|
|
this.hemisphericLight = DataStorage.ReadBoolean("HemisphericLight", true);
|