ソースを参照

New uglifyed version of babylon.js (grunt-contrib-uglify)

David Catuhe 11 年 前
コミット
d9d35b8e1e

+ 2 - 2
Babylon/Cameras/babylon.touchCamera.js

@@ -99,7 +99,7 @@ var BABYLON = BABYLON || {};
         canvas.addEventListener("pointerout", this._onPointerUp);
         canvas.addEventListener("pointermove", this._onPointerMove);
 
-        Tools.RegisterTopRootEvents([
+        BABYLON.Tools.RegisterTopRootEvents([
             { name: "blur", handler: this._onLostFocus }
         ]);
     };
@@ -114,7 +114,7 @@ var BABYLON = BABYLON || {};
         canvas.removeEventListener("pointerout", this._onPointerUp);
         canvas.removeEventListener("pointermove", this._onPointerMove);
 
-        Tools.UnregisterTopRootEvents([
+        BABYLON.Tools.UnregisterTopRootEvents([
             { name: "blur", handler: this._onLostFocus }
         ]);
         

+ 6 - 5
Babylon/Mesh/babylon.mesh.js

@@ -933,6 +933,12 @@ var BABYLON;
             }
 
             impostor = impostor || BABYLON.PhysicsEngine.NoImpostor;
+
+            if (impostor === BABYLON.PhysicsEngine.NoImpostor) {
+                physicsEngine._unregisterMesh(this);
+                return;
+            }
+
             options.mass = options.mass || 0;
             options.friction = options.friction || 0.2;
             options.restitution = options.restitution || 0.9;
@@ -942,11 +948,6 @@ var BABYLON;
             this._physicsFriction = options.friction;
             this._physicRestitution = options.restitution;
 
-            if (impostor === BABYLON.PhysicsEngine.NoImpostor) {
-                physicsEngine._unregisterMesh(this);
-                return;
-            }
-
             physicsEngine._registerMesh(this, impostor, options);
         };
 

+ 6 - 4
Babylon/Mesh/babylon.mesh.ts

@@ -953,6 +953,12 @@
             }
 
             impostor = impostor || PhysicsEngine.NoImpostor;
+
+            if (impostor === BABYLON.PhysicsEngine.NoImpostor) {
+                physicsEngine._unregisterMesh(this);
+                return;
+            }
+
             options.mass = options.mass || 0;
             options.friction = options.friction || 0.2;
             options.restitution = options.restitution || 0.9;
@@ -962,10 +968,6 @@
             this._physicsFriction = options.friction;
             this._physicRestitution = options.restitution;
 
-            if (impostor === BABYLON.PhysicsEngine.NoImpostor) {
-                physicsEngine._unregisterMesh(this);
-                return;
-            }
 
             physicsEngine._registerMesh(this, impostor, options);
         }

ファイルの差分が大きいため隠しています
+ 13 - 28
babylon.1.12-beta.js