Browse Source

Associated with #6012

David Catuhe 6 years ago
parent
commit
595c2e95b6
2 changed files with 3 additions and 2 deletions
  1. 1 1
      nodeEditor/src/main.scss
  2. 2 1
      nodeEditor/src/previewManager.ts

+ 1 - 1
nodeEditor/src/main.scss

@@ -49,7 +49,7 @@
         grid-column: 1;
     }
 
-    #preview-canvas {
+    #preview {
         border-top: 1px solid rgb(85, 85, 85);
         grid-row: 2;
         grid-column: 1;

+ 2 - 1
nodeEditor/src/previewManager.ts

@@ -33,7 +33,7 @@ export class PreviewManager {
 
         this._dummySphere = MeshBuilder.CreateSphere("sphere", {diameter: 2, segments: 32}, this._scene);
 
-        this._camera.attachControl(targetCanvas, false);
+       // this._camera.attachControl(targetCanvas, false);
 
         this._engine.runRenderLoop(() => {
             this._scene.render();
@@ -47,6 +47,7 @@ export class PreviewManager {
     public dispose() {
         this._nodeMaterial.onBuildObservable.remove(this._onBuildObserver);
 
+        this._camera.dispose();
         this._dummySphere.dispose();
         this._light.dispose();
         this._engine.dispose();