David Catuhe 7 lat temu
rodzic
commit
0fe953a5e5

Plik diff jest za duży
+ 13 - 13
Viewer/dist/viewer.js


Plik diff jest za duży
+ 13 - 13
Viewer/dist/viewer.min.js


Plik diff jest za duży
+ 9878 - 9878
dist/preview release/babylon.d.ts


Plik diff jest za duży
+ 7 - 7
dist/preview release/babylon.js


+ 4 - 4
dist/preview release/babylon.max.js

@@ -15931,7 +15931,7 @@ var BABYLON;
                 BABYLON.Tags.AddTagsTo(transformNode, parsedTransformNode.tags);
             }
             if (parsedTransformNode.localMatrix) {
-                transformNode.setPivotMatrix(BABYLON.Matrix.FromArray(parsedTransformNode.localMatrix));
+                transformNode.setPreTransformMatrix(BABYLON.Matrix.FromArray(parsedTransformNode.localMatrix));
             }
             else if (parsedTransformNode.pivotMatrix) {
                 transformNode.setPivotMatrix(BABYLON.Matrix.FromArray(parsedTransformNode.pivotMatrix));
@@ -28044,7 +28044,7 @@ var BABYLON;
             }
             mesh.scaling = BABYLON.Vector3.FromArray(parsedMesh.scaling);
             if (parsedMesh.localMatrix) {
-                mesh.setPivotMatrix(BABYLON.Matrix.FromArray(parsedMesh.localMatrix));
+                mesh.setPreTransformMatrix(BABYLON.Matrix.FromArray(parsedMesh.localMatrix));
             }
             else if (parsedMesh.pivotMatrix) {
                 mesh.setPivotMatrix(BABYLON.Matrix.FromArray(parsedMesh.pivotMatrix));
@@ -73899,7 +73899,7 @@ var BABYLON;
                 var oldPivot = mesh.getPivotMatrix() || BABYLON.Matrix.Translation(0, 0, 0);
                 //calculate the new center using a pivot (since this.BJSCANNON.js doesn't center height maps)
                 var p = BABYLON.Matrix.Translation(boundingInfo.boundingBox.extendSizeWorld.x, 0, -boundingInfo.boundingBox.extendSizeWorld.z);
-                mesh.setPivotMatrix(p);
+                mesh.setPreTransformMatrix(p);
                 mesh.computeWorldMatrix(true);
                 //calculate the translation
                 var translation = boundingInfo.boundingBox.centerWorld.subtract(center).subtract(mesh.position).negate();
@@ -73909,7 +73909,7 @@ var BABYLON;
                 this._tmpDeltaPosition.y += boundingInfo.boundingBox.extendSizeWorld.y;
                 //rotation is back
                 mesh.rotationQuaternion = rotationQuaternion;
-                mesh.setPivotMatrix(oldPivot);
+                mesh.setPreTransformMatrix(oldPivot);
                 mesh.computeWorldMatrix(true);
             }
             else if (impostor.type === BABYLON.PhysicsImpostor.MeshImpostor) {

Plik diff jest za duży
+ 7 - 7
dist/preview release/babylon.worker.js


Plik diff jest za duży
+ 2548 - 2548
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


Plik diff jest za duży
+ 7 - 7
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.js


+ 4 - 4
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.max.js

@@ -15931,7 +15931,7 @@ var BABYLON;
                 BABYLON.Tags.AddTagsTo(transformNode, parsedTransformNode.tags);
             }
             if (parsedTransformNode.localMatrix) {
-                transformNode.setPivotMatrix(BABYLON.Matrix.FromArray(parsedTransformNode.localMatrix));
+                transformNode.setPreTransformMatrix(BABYLON.Matrix.FromArray(parsedTransformNode.localMatrix));
             }
             else if (parsedTransformNode.pivotMatrix) {
                 transformNode.setPivotMatrix(BABYLON.Matrix.FromArray(parsedTransformNode.pivotMatrix));
@@ -28044,7 +28044,7 @@ var BABYLON;
             }
             mesh.scaling = BABYLON.Vector3.FromArray(parsedMesh.scaling);
             if (parsedMesh.localMatrix) {
-                mesh.setPivotMatrix(BABYLON.Matrix.FromArray(parsedMesh.localMatrix));
+                mesh.setPreTransformMatrix(BABYLON.Matrix.FromArray(parsedMesh.localMatrix));
             }
             else if (parsedMesh.pivotMatrix) {
                 mesh.setPivotMatrix(BABYLON.Matrix.FromArray(parsedMesh.pivotMatrix));
@@ -73641,7 +73641,7 @@ var BABYLON;
                 var oldPivot = mesh.getPivotMatrix() || BABYLON.Matrix.Translation(0, 0, 0);
                 //calculate the new center using a pivot (since this.BJSCANNON.js doesn't center height maps)
                 var p = BABYLON.Matrix.Translation(boundingInfo.boundingBox.extendSizeWorld.x, 0, -boundingInfo.boundingBox.extendSizeWorld.z);
-                mesh.setPivotMatrix(p);
+                mesh.setPreTransformMatrix(p);
                 mesh.computeWorldMatrix(true);
                 //calculate the translation
                 var translation = boundingInfo.boundingBox.centerWorld.subtract(center).subtract(mesh.position).negate();
@@ -73651,7 +73651,7 @@ var BABYLON;
                 this._tmpDeltaPosition.y += boundingInfo.boundingBox.extendSizeWorld.y;
                 //rotation is back
                 mesh.rotationQuaternion = rotationQuaternion;
-                mesh.setPivotMatrix(oldPivot);
+                mesh.setPreTransformMatrix(oldPivot);
                 mesh.computeWorldMatrix(true);
             }
             else if (impostor.type === BABYLON.PhysicsImpostor.MeshImpostor) {

+ 4 - 4
dist/preview release/customConfigurations/minimalGLTFViewer/es6.js

@@ -15917,7 +15917,7 @@ var BABYLON;
                 BABYLON.Tags.AddTagsTo(transformNode, parsedTransformNode.tags);
             }
             if (parsedTransformNode.localMatrix) {
-                transformNode.setPivotMatrix(BABYLON.Matrix.FromArray(parsedTransformNode.localMatrix));
+                transformNode.setPreTransformMatrix(BABYLON.Matrix.FromArray(parsedTransformNode.localMatrix));
             }
             else if (parsedTransformNode.pivotMatrix) {
                 transformNode.setPivotMatrix(BABYLON.Matrix.FromArray(parsedTransformNode.pivotMatrix));
@@ -28030,7 +28030,7 @@ var BABYLON;
             }
             mesh.scaling = BABYLON.Vector3.FromArray(parsedMesh.scaling);
             if (parsedMesh.localMatrix) {
-                mesh.setPivotMatrix(BABYLON.Matrix.FromArray(parsedMesh.localMatrix));
+                mesh.setPreTransformMatrix(BABYLON.Matrix.FromArray(parsedMesh.localMatrix));
             }
             else if (parsedMesh.pivotMatrix) {
                 mesh.setPivotMatrix(BABYLON.Matrix.FromArray(parsedMesh.pivotMatrix));
@@ -73627,7 +73627,7 @@ var BABYLON;
                 var oldPivot = mesh.getPivotMatrix() || BABYLON.Matrix.Translation(0, 0, 0);
                 //calculate the new center using a pivot (since this.BJSCANNON.js doesn't center height maps)
                 var p = BABYLON.Matrix.Translation(boundingInfo.boundingBox.extendSizeWorld.x, 0, -boundingInfo.boundingBox.extendSizeWorld.z);
-                mesh.setPivotMatrix(p);
+                mesh.setPreTransformMatrix(p);
                 mesh.computeWorldMatrix(true);
                 //calculate the translation
                 var translation = boundingInfo.boundingBox.centerWorld.subtract(center).subtract(mesh.position).negate();
@@ -73637,7 +73637,7 @@ var BABYLON;
                 this._tmpDeltaPosition.y += boundingInfo.boundingBox.extendSizeWorld.y;
                 //rotation is back
                 mesh.rotationQuaternion = rotationQuaternion;
-                mesh.setPivotMatrix(oldPivot);
+                mesh.setPreTransformMatrix(oldPivot);
                 mesh.computeWorldMatrix(true);
             }
             else if (impostor.type === BABYLON.PhysicsImpostor.MeshImpostor) {

+ 4 - 4
dist/preview release/es6.js

@@ -15917,7 +15917,7 @@ var BABYLON;
                 BABYLON.Tags.AddTagsTo(transformNode, parsedTransformNode.tags);
             }
             if (parsedTransformNode.localMatrix) {
-                transformNode.setPivotMatrix(BABYLON.Matrix.FromArray(parsedTransformNode.localMatrix));
+                transformNode.setPreTransformMatrix(BABYLON.Matrix.FromArray(parsedTransformNode.localMatrix));
             }
             else if (parsedTransformNode.pivotMatrix) {
                 transformNode.setPivotMatrix(BABYLON.Matrix.FromArray(parsedTransformNode.pivotMatrix));
@@ -28030,7 +28030,7 @@ var BABYLON;
             }
             mesh.scaling = BABYLON.Vector3.FromArray(parsedMesh.scaling);
             if (parsedMesh.localMatrix) {
-                mesh.setPivotMatrix(BABYLON.Matrix.FromArray(parsedMesh.localMatrix));
+                mesh.setPreTransformMatrix(BABYLON.Matrix.FromArray(parsedMesh.localMatrix));
             }
             else if (parsedMesh.pivotMatrix) {
                 mesh.setPivotMatrix(BABYLON.Matrix.FromArray(parsedMesh.pivotMatrix));
@@ -73885,7 +73885,7 @@ var BABYLON;
                 var oldPivot = mesh.getPivotMatrix() || BABYLON.Matrix.Translation(0, 0, 0);
                 //calculate the new center using a pivot (since this.BJSCANNON.js doesn't center height maps)
                 var p = BABYLON.Matrix.Translation(boundingInfo.boundingBox.extendSizeWorld.x, 0, -boundingInfo.boundingBox.extendSizeWorld.z);
-                mesh.setPivotMatrix(p);
+                mesh.setPreTransformMatrix(p);
                 mesh.computeWorldMatrix(true);
                 //calculate the translation
                 var translation = boundingInfo.boundingBox.centerWorld.subtract(center).subtract(mesh.position).negate();
@@ -73895,7 +73895,7 @@ var BABYLON;
                 this._tmpDeltaPosition.y += boundingInfo.boundingBox.extendSizeWorld.y;
                 //rotation is back
                 mesh.rotationQuaternion = rotationQuaternion;
-                mesh.setPivotMatrix(oldPivot);
+                mesh.setPreTransformMatrix(oldPivot);
                 mesh.computeWorldMatrix(true);
             }
             else if (impostor.type === BABYLON.PhysicsImpostor.MeshImpostor) {

Plik diff jest za duży
+ 20 - 20
dist/preview release/viewer/babylon.viewer.js