Pārlūkot izejas kodu

Missing @serialize

David Catuhe 9 gadi atpakaļ
vecāks
revīzija
f984247001

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 6 - 6
dist/preview release/babylon.core.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1340 - 1340
dist/preview release/babylon.d.ts


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 13 - 13
dist/preview release/babylon.js


+ 3 - 0
dist/preview release/babylon.max.js

@@ -20903,6 +20903,9 @@ var BABYLON;
         __decorate([
             BABYLON.serialize()
         ], StandardMaterial.prototype, "useGlossinessFromSpecularMapAlpha", void 0);
+        __decorate([
+            BABYLON.serialize()
+        ], StandardMaterial.prototype, "useLogarithmicDepth", null);
         return StandardMaterial;
     })(BABYLON.Material);
     BABYLON.StandardMaterial = StandardMaterial;

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 13 - 13
dist/preview release/babylon.noworker.js


+ 0 - 20
materialsLibrary/dist/babylon.fireMaterial.js

@@ -247,26 +247,6 @@ var BABYLON;
         };
         FireMaterial.prototype.clone = function (name) {
             var _this = this;
-            /*
-            var newMaterial = new FireMaterial(name, this.getScene());
-
-            // Base material
-            this.copyTo(newMaterial);
-
-            // Fire material
-            if (this.diffuseTexture && this.diffuseTexture.clone) {
-                newMaterial.diffuseTexture = this.diffuseTexture.clone();
-            }
-            if (this.distortionTexture && this.distortionTexture.clone) {
-                newMaterial.distortionTexture = this.distortionTexture.clone();
-            }
-            if (this.opacityTexture && this.opacityTexture.clone) {
-                newMaterial.opacityTexture = this.opacityTexture.clone();
-            }
-
-            newMaterial.diffuseColor = this.diffuseColor.clone();
-            return newMaterial;
-            */
             return BABYLON.SerializationHelper.Clone(function () { return new FireMaterial(name, _this.getScene()); }, this);
         };
         FireMaterial.prototype.serialize = function () {

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 746 - 542
materialsLibrary/test/refs/babylon.max.js


+ 3 - 0
src/Materials/babylon.standardMaterial.js

@@ -821,6 +821,9 @@ var BABYLON;
         __decorate([
             BABYLON.serialize()
         ], StandardMaterial.prototype, "useGlossinessFromSpecularMapAlpha", void 0);
+        __decorate([
+            BABYLON.serialize()
+        ], StandardMaterial.prototype, "useLogarithmicDepth", null);
         return StandardMaterial;
     })(BABYLON.Material);
     BABYLON.StandardMaterial = StandardMaterial;

+ 1 - 0
src/Materials/babylon.standardMaterial.ts

@@ -214,6 +214,7 @@
             }
         }
 
+        @serialize()
         public get useLogarithmicDepth(): boolean {
             return this._useLogarithmicDepth;
         }