Procházet zdrojové kódy

Removing unwanted comments

David Catuhe před 10 roky
rodič
revize
d9999e1f84

+ 9 - 9
Babylon/Collisions/babylon.collisionWorker.js

@@ -147,8 +147,8 @@ var BABYLON;
         CollisionDetectorTransferable.prototype.onInit = function (payload) {
             this._collisionCache = new CollisionCache();
             var reply = {
-                error: BABYLON.WorkerReplyType.SUCCESS,
-                taskType: BABYLON.WorkerTaskType.INIT
+                error: 0 /* SUCCESS */,
+                taskType: 0 /* INIT */
             };
             postMessage(reply, undefined);
         };
@@ -164,8 +164,8 @@ var BABYLON;
                 }
             }
             var replay = {
-                error: BABYLON.WorkerReplyType.SUCCESS,
-                taskType: BABYLON.WorkerTaskType.UPDATE
+                error: 0 /* SUCCESS */,
+                taskType: 1 /* UPDATE */
             };
             postMessage(replay, undefined);
         };
@@ -182,8 +182,8 @@ var BABYLON;
                 newPosition: finalPosition.asArray()
             };
             var reply = {
-                error: BABYLON.WorkerReplyType.SUCCESS,
-                taskType: BABYLON.WorkerTaskType.COLLIDE,
+                error: 0 /* SUCCESS */,
+                taskType: 2 /* COLLIDE */,
                 payload: replyPayload
             };
             postMessage(reply, undefined);
@@ -205,13 +205,13 @@ var BABYLON;
             var onNewMessage = function (event) {
                 var message = event.data;
                 switch (message.taskType) {
-                    case BABYLON.WorkerTaskType.INIT:
+                    case 0 /* INIT */:
                         collisionDetector.onInit(message.payload);
                         break;
-                    case BABYLON.WorkerTaskType.COLLIDE:
+                    case 2 /* COLLIDE */:
                         collisionDetector.onCollision(message.payload);
                         break;
-                    case BABYLON.WorkerTaskType.UPDATE:
+                    case 1 /* UPDATE */:
                         collisionDetector.onUpdate(message.payload);
                         break;
                 }

+ 2 - 0
Babylon/Materials/babylon.standardMaterial.js

@@ -61,11 +61,13 @@ var BABYLON;
         StandardMaterial.prototype.isReady = function (mesh, useInstances) {
             if (this.checkReadyOnlyOnce) {
                 if (this._wasPreviouslyReady) {
+                    return true;
                 }
             }
             var scene = this.getScene();
             if (!this.checkReadyOnEveryCall) {
                 if (this._renderId === scene.getRenderId()) {
+                    return true;
                 }
             }
             var engine = scene.getEngine();

+ 2 - 2
Babylon/Materials/babylon.standardMaterial.ts

@@ -74,7 +74,7 @@
         public isReady(mesh?: AbstractMesh, useInstances?: boolean): boolean {
             if (this.checkReadyOnlyOnce) {
                 if (this._wasPreviouslyReady) {
-                 //   return true;
+                    return true;
                 }
             }
 
@@ -82,7 +82,7 @@
 
             if (!this.checkReadyOnEveryCall) {
                 if (this._renderId === scene.getRenderId()) {
-                  //  return true;
+                    return true;
                 }
             }
 

+ 2 - 0
Babylon/Mesh/babylon.mesh.js

@@ -313,9 +313,11 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
+        /**  This function affects parametric shapes on update only : ribbons, tubes, etc. It has no effect at all on other shapes */
         Mesh.prototype.freezeNormals = function () {
             this._areNormalsFrozen = true;
         };
+        /**  This function affects parametric shapes on update only : ribbons, tubes, etc. It has no effect at all on other shapes */
         Mesh.prototype.unfreezeNormals = function () {
             this._areNormalsFrozen = false;
         };

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 15 - 6
babylon.2.1-beta.debug.js


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 15 - 15
babylon.2.1-beta.js


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 14 - 14
babylon.2.1-beta.noworker.js