瀏覽代碼

Always think positive
and set negative

Raanan Weber 7 年之前
父節點
當前提交
38b841546a
共有 2 個文件被更改,包括 2 次插入4 次删除
  1. 1 1
      Viewer/src/configuration/types/default.ts
  2. 1 3
      Viewer/src/viewer/defaultViewer.ts

+ 1 - 1
Viewer/src/configuration/types/default.ts

@@ -30,7 +30,7 @@ export let defaultConfiguration: ViewerConfiguration = {
         viewer: {
             html: require("../../../assets/templates/default/defaultViewer.html"),
             params: {
-                disableDragAndDrop: false
+                enableDragAndDrop: false
             }
         },
         navBar: {

+ 1 - 3
Viewer/src/viewer/defaultViewer.ts

@@ -47,9 +47,7 @@ export class DefaultViewer extends AbstractViewer {
         }
 
         if (this.configuration.templates && this.configuration.templates.viewer) {
-            if (this.configuration.templates.viewer.params && this.configuration.templates.viewer.params.disableDragAndDrop) {
-                // noop for now
-            } else {
+            if (this.configuration.templates.viewer.params && this.configuration.templates.viewer.params.enableDragAndDrop) {
                 let filesInput = new FilesInput(this.engine, this.sceneManager.scene, () => {
                 }, () => {
                 }, () => {