David Catuhe 8 years ago
parent
commit
3e432d346b

+ 3 - 0
Tools/Npm/.npmignore

@@ -0,0 +1,3 @@
+npm_user.txt
+getfiles.bat
+npm-debug.log

File diff suppressed because it is too large
+ 115 - 0
Tools/Npm/README.md


+ 7 - 0
Tools/Npm/getfiles.bat

@@ -0,0 +1,7 @@
+xcopy /Y /F "../../dist/preview release/babylon.d.ts" .
+xcopy /Y /F "../../dist/preview release/babylon.js" .
+xcopy /Y /F "../../dist/preview release/babylon.max.js"  .
+xcopy /Y /F "../../dist/preview release/babylon.noworker.js" . 
+xcopy /Y /F "../../dist/preview release/babylon.core.js" . 
+xcopy /Y /F "../../dist/preview release/oimo.js" . 
+pause

+ 1 - 1
Tools/Npm/package.json

@@ -7,7 +7,7 @@
   ],
   "name": "babylonjs",
   "description": "Babylon.js is a JavaScript 3D engine based on webgl.",
-  "version": "2.4.0",
+  "version": "2.5.0",
   "repository": {
     "type": "git",
     "url": "https://github.com/BabylonJS/Babylon.js.git"

File diff suppressed because it is too large
+ 7 - 7
dist/preview release/babylon.core.js


File diff suppressed because it is too large
+ 860 - 858
dist/preview release/babylon.d.ts


File diff suppressed because it is too large
+ 17 - 17
dist/preview release/babylon.js


+ 17 - 2
dist/preview release/babylon.max.js

@@ -6966,7 +6966,7 @@ var BABYLON;
         });
         Object.defineProperty(Engine, "Version", {
             get: function () {
-                return "2.5.-beta";
+                return "2.5";
             },
             enumerable: true,
             configurable: true
@@ -30811,6 +30811,21 @@ var BABYLON;
             }
             BABYLON.Vector3.TransformCoordinatesToRef(position, tmat, result);
         };
+        Bone.prototype.getLocalPositionFromAbsolute = function (position, mesh) {
+            var result = BABYLON.Vector3.Zero();
+            this.getLocalPositionFromAbsoluteToRef(position, mesh, result);
+            return result;
+        };
+        Bone.prototype.getLocalPositionFromAbsoluteToRef = function (position, mesh, result) {
+            this._skeleton.computeAbsoluteTransforms();
+            var tmat = BABYLON.Tmp.Matrix[0];
+            tmat.copyFrom(this.getAbsoluteTransform());
+            if (mesh) {
+                tmat.multiplyToRef(mesh.getWorldMatrix(), tmat);
+            }
+            tmat.invert();
+            BABYLON.Vector3.TransformCoordinatesToRef(position, tmat, result);
+        };
         return Bone;
     }(BABYLON.Node));
     BABYLON.Bone = Bone;
@@ -51916,7 +51931,7 @@ var BABYLON;
     })(Internals = BABYLON.Internals || (BABYLON.Internals = {}));
 })(BABYLON || (BABYLON = {}));
 
-//# sourceMappingURL=babylon.tools.pmremGenerator.js.map
+//# sourceMappingURL=babylon.tools.pmremgenerator.js.map
 
 
 

File diff suppressed because it is too large
+ 26 - 26
dist/preview release/babylon.noworker.js


+ 1 - 1
src/babylon.engine.ts

@@ -383,7 +383,7 @@
         }
 
         public static get Version(): string {
-            return "2.5.-beta";
+            return "2.5";
         }
 
         // Updatable statics so stick with vars here