Pārlūkot izejas kodu

fix default values

David Catuhe 6 gadi atpakaļ
vecāks
revīzija
99b8d8e0ca
2 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 3 3
      src/Materials/Textures/internalTexture.ts
  2. 1 1
      src/scene.ts

+ 3 - 3
src/Materials/Textures/internalTexture.ts

@@ -97,7 +97,7 @@ export class InternalTexture {
     /**
      * Gets the sampling mode of the texture
      */
-    public samplingMode: number = 0;
+    public samplingMode: number = -1;
     /**
      * Gets a boolean indicating if the texture needs mipmaps generation
      */
@@ -109,11 +109,11 @@ export class InternalTexture {
     /**
      * Gets the type of the texture (int, float...)
      */
-    public type: number = 0;
+    public type: number = -1;
     /**
      * Gets the format of the texture (RGB, RGBA...)
      */
-    public format: number = 0;
+    public format: number = -1;
     /**
      * Observable called when the texture is loaded
      */

+ 1 - 1
src/scene.ts

@@ -3926,7 +3926,7 @@ export class Scene extends AbstractScene implements IAnimatable {
 
             this._totalVertices.addCount(mesh.getTotalVertices(), false);
 
-            if (!mesh.isReady() || !mesh.isEnabled()) {
+            if (!mesh.isReady() || !mesh.isEnabled() || mesh.scaling.lengthSquared() === 0) {
                 continue;
             }