Selaa lähdekoodia

Always think positive
and set negative

Raanan Weber 7 vuotta sitten
vanhempi
commit
38b841546a

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

@@ -30,7 +30,7 @@ export let defaultConfiguration: ViewerConfiguration = {
         viewer: {
         viewer: {
             html: require("../../../assets/templates/default/defaultViewer.html"),
             html: require("../../../assets/templates/default/defaultViewer.html"),
             params: {
             params: {
-                disableDragAndDrop: false
+                enableDragAndDrop: false
             }
             }
         },
         },
         navBar: {
         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 && 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, () => {
                 let filesInput = new FilesInput(this.engine, this.sceneManager.scene, () => {
                 }, () => {
                 }, () => {
                 }, () => {
                 }, () => {