Browse Source

New Engine.Version property
Introducing debug version: uglification is disabled on this one

David Catuhe 11 năm trước cách đây
mục cha
commit
28b5802df5
4 tập tin đã thay đổi với 55 bổ sung0 xóa
  1. 8 0
      Babylon/babylon.engine.js
  2. 4 0
      Babylon/babylon.engine.ts
  3. 28 0
      babylon.1.13-beta-debug.js
  4. 15 0
      babylon.1.13-beta.js

+ 8 - 0
Babylon/babylon.engine.js

@@ -283,6 +283,14 @@
             configurable: true
         });
 
+        Object.defineProperty(Engine, "Version", {
+            get: function () {
+                return "1.13.0";
+            },
+            enumerable: true,
+            configurable: true
+        });
+
         Engine.prototype.getAspectRatio = function (camera) {
             var viewport = camera.viewport;
             return (this.getRenderWidth() * viewport.width) / (this.getRenderHeight() * viewport.height);

+ 4 - 0
Babylon/babylon.engine.ts

@@ -164,6 +164,10 @@
             return Engine._DELAYLOADSTATE_NOTLOADED;
         }
 
+        public static get Version(): string {
+            return "1.13.0";
+        }
+
         // Updatable statics so stick with vars here
         public static Epsilon = 0.001;
         public static CollisionsEpsilon = 0.001;

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 28 - 0
babylon.1.13-beta-debug.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 15 - 0
babylon.1.13-beta.js