Ver código fonte

Almost there

sebastien 6 anos atrás
pai
commit
a7c1d7bca1
2 arquivos alterados com 15 adições e 2 exclusões
  1. 1 1
      Tools/DevLoader/BabylonLoader.js
  2. 14 1
      Tools/Gulp/config.json

+ 1 - 1
Tools/DevLoader/BabylonLoader.js

@@ -155,7 +155,7 @@ var BABYLONDEVTOOLS;
                 var tempDirectory = '/.temp' + module.build.distOutputDirectory;
                 this.loadScript(babylonJSPath + tempDirectory + library.output);
             }
-            else if (module.build.distOutputDirectory) {
+            else if (module.build.distOutputDirectory && (!testMode || !module.build.ignoreInTestMode)) {
                 if (min) {
                     this.loadScript(babylonJSPath + '/dist/preview release' + module.build.distOutputDirectory + library.output);
                 }

+ 14 - 1
Tools/Gulp/config.json

@@ -67,7 +67,19 @@
                 "moduleName": "BABYLON",
                 "moduleSpecifics": [
                     {
-                        "path": "babylonjs/Debug",
+                        "path": "babylonjs/Debug/axesViewer",
+                        "namespace": "BABYLON.Debug"
+                    },
+                    {
+                        "path": "babylonjs/Debug/boneAxesViewer",
+                        "namespace": "BABYLON.Debug"
+                    },
+                    {
+                        "path": "babylonjs/Debug/physicsViewer",
+                        "namespace": "BABYLON.Debug"
+                    },
+                    {
+                        "path": "babylonjs/Debug/skeletonViewer",
                         "namespace": "BABYLON.Debug"
                     }
                 ],
@@ -430,6 +442,7 @@
             }
         ],
         "build": {
+            "ignoreInTestMode": true,
             "webpack": "../../../inspector/webpack.config.js",
             "srcDirectory": "../../inspector/src/",
             "distOutputDirectory": "/inspector/",