David Catuhe 5 years ago
parent
commit
98933071bc

+ 4 - 0
Playground/babylon.d.txt

@@ -27649,6 +27649,10 @@ declare module BABYLON {
          */
         readonly textureFormat: number;
         /**
+         * Indicates that textures need to be re-calculated for all materials
+         */
+        protected _markAllSubMeshesAsTexturesDirty(): void;
+        /**
          * Reads the pixels stored in the webgl texture and returns them as an ArrayBuffer.
          * This will returns an RGBA array buffer containing either in values (0-255) or
          * float values (0-1) depending of the underlying buffer type.

+ 4 - 0
dist/preview release/babylon.d.ts

@@ -28145,6 +28145,10 @@ declare module BABYLON {
          */
         readonly textureFormat: number;
         /**
+         * Indicates that textures need to be re-calculated for all materials
+         */
+        protected _markAllSubMeshesAsTexturesDirty(): void;
+        /**
          * Reads the pixels stored in the webgl texture and returns them as an ArrayBuffer.
          * This will returns an RGBA array buffer containing either in values (0-255) or
          * float values (0-1) depending of the underlying buffer type.

File diff suppressed because it is too large
+ 1 - 1
dist/preview release/babylon.js


File diff suppressed because it is too large
+ 40 - 29
dist/preview release/babylon.max.js


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/babylon.max.js.map


+ 8 - 0
dist/preview release/babylon.module.d.ts

@@ -28969,6 +28969,10 @@ declare module "babylonjs/Materials/Textures/baseTexture" {
          */
         readonly textureFormat: number;
         /**
+         * Indicates that textures need to be re-calculated for all materials
+         */
+        protected _markAllSubMeshesAsTexturesDirty(): void;
+        /**
          * Reads the pixels stored in the webgl texture and returns them as an ArrayBuffer.
          * This will returns an RGBA array buffer containing either in values (0-255) or
          * float values (0-1) depending of the underlying buffer type.
@@ -94781,6 +94785,10 @@ declare module BABYLON {
          */
         readonly textureFormat: number;
         /**
+         * Indicates that textures need to be re-calculated for all materials
+         */
+        protected _markAllSubMeshesAsTexturesDirty(): void;
+        /**
          * Reads the pixels stored in the webgl texture and returns them as an ArrayBuffer.
          * This will returns an RGBA array buffer containing either in values (0-255) or
          * float values (0-1) depending of the underlying buffer type.

+ 4 - 0
dist/preview release/documentation.d.ts

@@ -28145,6 +28145,10 @@ declare module BABYLON {
          */
         readonly textureFormat: number;
         /**
+         * Indicates that textures need to be re-calculated for all materials
+         */
+        protected _markAllSubMeshesAsTexturesDirty(): void;
+        /**
          * Reads the pixels stored in the webgl texture and returns them as an ArrayBuffer.
          * This will returns an RGBA array buffer containing either in values (0-255) or
          * float values (0-1) depending of the underlying buffer type.

+ 1 - 1
dist/preview release/packagesSizeBaseLine.json

@@ -1 +1 @@
-{"thinEngineOnly":130515,"engineOnly":166377,"sceneOnly":510032,"minGridMaterial":640277,"minStandardMaterial":771167}
+{"thinEngineOnly":130518,"engineOnly":166380,"sceneOnly":510035,"minGridMaterial":640280,"minStandardMaterial":771439}

+ 8 - 0
dist/preview release/viewer/babylon.module.d.ts

@@ -28969,6 +28969,10 @@ declare module "babylonjs/Materials/Textures/baseTexture" {
          */
         readonly textureFormat: number;
         /**
+         * Indicates that textures need to be re-calculated for all materials
+         */
+        protected _markAllSubMeshesAsTexturesDirty(): void;
+        /**
          * Reads the pixels stored in the webgl texture and returns them as an ArrayBuffer.
          * This will returns an RGBA array buffer containing either in values (0-255) or
          * float values (0-1) depending of the underlying buffer type.
@@ -94781,6 +94785,10 @@ declare module BABYLON {
          */
         readonly textureFormat: number;
         /**
+         * Indicates that textures need to be re-calculated for all materials
+         */
+        protected _markAllSubMeshesAsTexturesDirty(): void;
+        /**
          * Reads the pixels stored in the webgl texture and returns them as an ArrayBuffer.
          * This will returns an RGBA array buffer containing either in values (0-255) or
          * float values (0-1) depending of the underlying buffer type.

File diff suppressed because it is too large
+ 9 - 9
dist/preview release/viewer/babylon.viewer.js


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/viewer/babylon.viewer.max.js


+ 1 - 1
src/Engines/thinEngine.ts

@@ -2924,7 +2924,7 @@ export class ThinEngine {
             else if (typeof buffer === "string" || buffer instanceof ArrayBuffer || ArrayBuffer.isView(buffer) || buffer instanceof Blob) {
                 FileTools.LoadImage(buffer, onload, onInternalError, scene ? scene.offlineProvider : null);
             }
-            else if (buffer){
+            else if (buffer) {
                 onload(<HTMLImageElement>buffer);
             }
         }