David Catuhe преди 9 години
родител
ревизия
68f8d27789

Файловите разлики са ограничени, защото са твърде много
+ 7 - 7
dist/preview release/babylon.core.js


Файловите разлики са ограничени, защото са твърде много
+ 737 - 735
dist/preview release/babylon.d.ts


Файловите разлики са ограничени, защото са твърде много
+ 7 - 7
dist/preview release/babylon.js


+ 8 - 5
dist/preview release/babylon.max.js

@@ -5403,7 +5403,7 @@ var BABYLON;
             }
             if (this._activeRenderLoops.length > 0) {
                 // Register new frame
-                BABYLON.Tools.QueueNewFrame(this._renderLoop.bind(this));
+                BABYLON.Tools.QueueNewFrame(this._bindedRenderFunction);
             }
             else {
                 this._renderingQueueLaunched = false;
@@ -5418,16 +5418,14 @@ var BABYLON;
          * })
          */
         Engine.prototype.runRenderLoop = function (renderFunction) {
-            var _this = this;
             if (this._activeRenderLoops.indexOf(renderFunction) !== -1) {
                 return;
             }
             this._activeRenderLoops.push(renderFunction);
             if (!this._renderingQueueLaunched) {
                 this._renderingQueueLaunched = true;
-                BABYLON.Tools.QueueNewFrame(function () {
-                    _this._renderLoop();
-                });
+                this._bindedRenderFunction = this._renderLoop.bind(this);
+                BABYLON.Tools.QueueNewFrame(this._bindedRenderFunction);
             }
         };
         /**
@@ -14953,6 +14951,7 @@ var BABYLON;
                 radius: radius,
                 tessellation: tessellation,
                 radiusFunction: radiusFunction,
+                arc: 1,
                 cap: cap,
                 updatable: updatable,
                 sideOrientation: sideOrientation,
@@ -21880,6 +21879,9 @@ var BABYLON;
             scene._activeAnimatables.push(this);
         }
         // Methods
+        Animatable.prototype.getAnimations = function () {
+            return this._animations;
+        };
         Animatable.prototype.appendAnimations = function (target, animations) {
             for (var index = 0; index < animations.length; index++) {
                 var animation = animations[index];
@@ -26630,6 +26632,7 @@ var BABYLON;
             this._drawingCanvas.id = "DebugLayerDrawingCanvas";
             this._drawingCanvas.style.position = "absolute";
             this._drawingCanvas.style.pointerEvents = "none";
+            this._drawingCanvas.style.backgroundColor = "transparent";
             this._drawingContext = this._drawingCanvas.getContext("2d");
             this._globalDiv.appendChild(this._drawingCanvas);
             if (this._showUI) {

Файловите разлики са ограничени, защото са твърде много
+ 7 - 7
dist/preview release/babylon.noworker.js


+ 3 - 0
src/Animations/babylon.animatable.js

@@ -22,6 +22,9 @@ var BABYLON;
             scene._activeAnimatables.push(this);
         }
         // Methods
+        Animatable.prototype.getAnimations = function () {
+            return this._animations;
+        };
         Animatable.prototype.appendAnimations = function (target, animations) {
             for (var index = 0; index < animations.length; index++) {
                 var animation = animations[index];

+ 4 - 0
src/Animations/babylon.animatable.ts

@@ -18,6 +18,10 @@
         }
 
         // Methods
+        public getAnimations(): Animation[] {
+            return this._animations;
+        }
+
         public appendAnimations(target: any, animations: Animation[]): void {
             for (var index = 0; index < animations.length; index++) {
                 var animation = animations[index];

+ 1 - 0
src/Debug/babylon.debugLayer.js

@@ -392,6 +392,7 @@ var BABYLON;
             this._drawingCanvas.id = "DebugLayerDrawingCanvas";
             this._drawingCanvas.style.position = "absolute";
             this._drawingCanvas.style.pointerEvents = "none";
+            this._drawingCanvas.style.backgroundColor = "transparent";
             this._drawingContext = this._drawingCanvas.getContext("2d");
             this._globalDiv.appendChild(this._drawingCanvas);
             if (this._showUI) {

+ 1 - 0
src/Debug/babylon.debugLayer.ts

@@ -532,6 +532,7 @@
             this._drawingCanvas.id = "DebugLayerDrawingCanvas";
             this._drawingCanvas.style.position = "absolute";
             this._drawingCanvas.style.pointerEvents = "none";
+            this._drawingCanvas.style.backgroundColor = "transparent";
             this._drawingContext = this._drawingCanvas.getContext("2d");
             this._globalDiv.appendChild(this._drawingCanvas);
 

+ 1 - 0
src/Mesh/babylon.mesh.js

@@ -1245,6 +1245,7 @@ var BABYLON;
                 radius: radius,
                 tessellation: tessellation,
                 radiusFunction: radiusFunction,
+                arc: 1,
                 cap: cap,
                 updatable: updatable,
                 sideOrientation: sideOrientation,

+ 1 - 0
src/Mesh/babylon.mesh.ts

@@ -1455,6 +1455,7 @@
                 radius: radius,
                 tessellation: tessellation,
                 radiusFunction: radiusFunction,
+                arc: 1,
                 cap: cap,
                 updatable: updatable,
                 sideOrientation: sideOrientation,

+ 3 - 5
src/babylon.engine.js

@@ -733,7 +733,7 @@ var BABYLON;
             }
             if (this._activeRenderLoops.length > 0) {
                 // Register new frame
-                BABYLON.Tools.QueueNewFrame(this._renderLoop.bind(this));
+                BABYLON.Tools.QueueNewFrame(this._bindedRenderFunction);
             }
             else {
                 this._renderingQueueLaunched = false;
@@ -748,16 +748,14 @@ var BABYLON;
          * })
          */
         Engine.prototype.runRenderLoop = function (renderFunction) {
-            var _this = this;
             if (this._activeRenderLoops.indexOf(renderFunction) !== -1) {
                 return;
             }
             this._activeRenderLoops.push(renderFunction);
             if (!this._renderingQueueLaunched) {
                 this._renderingQueueLaunched = true;
-                BABYLON.Tools.QueueNewFrame(function () {
-                    _this._renderLoop();
-                });
+                this._bindedRenderFunction = this._renderLoop.bind(this);
+                BABYLON.Tools.QueueNewFrame(this._bindedRenderFunction);
             }
         };
         /**

+ 5 - 4
src/babylon.engine.ts

@@ -557,6 +557,8 @@
         private _workingCanvas: HTMLCanvasElement;
         private _workingContext: CanvasRenderingContext2D;
 
+        private _bindedRenderFunction: any;
+
         /**
          * @constructor
          * @param {HTMLCanvasElement} canvas - the canvas to be used for rendering
@@ -831,7 +833,7 @@
 
             if (this._activeRenderLoops.length > 0) {
                 // Register new frame
-                Tools.QueueNewFrame(this._renderLoop.bind(this));
+                Tools.QueueNewFrame(this._bindedRenderFunction);
             } else {
                 this._renderingQueueLaunched = false;
             }
@@ -854,9 +856,8 @@
 
             if (!this._renderingQueueLaunched) {
                 this._renderingQueueLaunched = true;
-                Tools.QueueNewFrame(() => {
-                    this._renderLoop();
-                });
+                this._bindedRenderFunction = this._renderLoop.bind(this);
+                Tools.QueueNewFrame(this._bindedRenderFunction);
             }
         }