Pārlūkot izejas kodu

Merge pull request #4969 from sebavan/master

3.3.0-beta.3
sebavan 7 gadi atpakaļ
vecāks
revīzija
9882affd44

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


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


+ 58 - 5
dist/preview release/babylon.max.js

@@ -11793,7 +11793,7 @@ var BABYLON;
              * Returns the current version of the framework
              */
             get: function () {
-                return "3.3.0-beta.2";
+                return "3.3.0-beta.3";
             },
             enumerable: true,
             configurable: true
@@ -33322,6 +33322,9 @@ var BABYLON;
                     position: instance.position.asArray(),
                     scaling: instance.scaling.asArray()
                 };
+                if (instance.parent) {
+                    serializationInstance.parentId = instance.parent.id;
+                }
                 if (instance.rotationQuaternion) {
                     serializationInstance.rotationQuaternion = instance.rotationQuaternion.asArray();
                 }
@@ -93410,6 +93413,7 @@ var BABYLON;
             _this._scaleDragSpeed = 0.2;
             _this._tmpQuaternion = new BABYLON.Quaternion();
             _this._tmpVector = new BABYLON.Vector3(0, 0, 0);
+            _this._tmpRotationMatrix = new BABYLON.Matrix();
             /**
              * If child meshes should be ignored when calculating the boudning box. This should be set to true to avoid perf hits with heavily nested meshes (Default: false)
              */
@@ -93450,7 +93454,13 @@ var BABYLON;
              * Fired when a rotation sphere drag is ended
              */
             _this.onRotationSphereDragEndObservable = new BABYLON.Observable();
+            /**
+             * Relative bounding box pivot used when scaling the attached mesh. When null object with scale from the opposite corner. 0.5,0.5,0.5 for center and 0.5,0,0.5 for bottom (Default: null)
+             */
+            _this.scalePivot = null;
             _this._existingMeshScale = new BABYLON.Vector3();
+            _this._oldPivotPoint = new BABYLON.Vector3();
+            _this._pivotTranslation = new BABYLON.Vector3();
             // Do not update the gizmo's scale so it has a fixed size to the object its attached to
             _this._updateScale = false;
             _this._anchorMesh = new BABYLON.AbstractMesh("anchor", gizmoLayer.utilityLayerScene);
@@ -93505,6 +93515,7 @@ var BABYLON;
                 _dragBehavior.onDragObservable.add(function (event) {
                     _this.onRotationSphereDragObservable.notifyObservers({});
                     if (_this.attachedMesh) {
+                        _this.removeAndStorePivotPoint();
                         var worldDragDirection = startingTurnDirection;
                         // Project the world right on to the drag plane
                         var toSub = event.dragPlaneNormal.scale(BABYLON.Vector3.Dot(event.dragPlaneNormal, worldDragDirection));
@@ -93538,6 +93549,7 @@ var BABYLON;
                             _this._anchorMesh.removeChild(_this.attachedMesh);
                         }
                         _this.updateBoundingBox();
+                        _this.restorePivotPoint();
                     }
                 });
                 // Selection/deselection
@@ -93572,19 +93584,33 @@ var BABYLON;
                         _dragBehavior.onDragObservable.add(function (event) {
                             _this.onScaleBoxDragObservable.notifyObservers({});
                             if (_this.attachedMesh) {
+                                _this.removeAndStorePivotPoint();
                                 var relativeDragDistance = (event.dragDistance / _this._boundingDimensions.length()) * _this._anchorMesh.scaling.length();
                                 var deltaScale = new BABYLON.Vector3(relativeDragDistance, relativeDragDistance, relativeDragDistance);
                                 deltaScale.scaleInPlace(_this._scaleDragSpeed);
                                 _this.updateBoundingBox();
-                                // Scale from the position of the opposite corner                   
-                                box.absolutePosition.subtractToRef(_this._anchorMesh.position, _this._tmpVector);
-                                _this._anchorMesh.position.subtractInPlace(_this._tmpVector);
+                                if (_this.scalePivot) {
+                                    _this.attachedMesh.getWorldMatrix().getRotationMatrixToRef(_this._tmpRotationMatrix);
+                                    // Move anchor to desired pivot point (Bottom left corner + dimension/2)
+                                    _this._boundingDimensions.scaleToRef(0.5, _this._tmpVector);
+                                    BABYLON.Vector3.TransformCoordinatesToRef(_this._tmpVector, _this._tmpRotationMatrix, _this._tmpVector);
+                                    _this._anchorMesh.position.subtractInPlace(_this._tmpVector);
+                                    _this._boundingDimensions.multiplyToRef(_this.scalePivot, _this._tmpVector);
+                                    BABYLON.Vector3.TransformCoordinatesToRef(_this._tmpVector, _this._tmpRotationMatrix, _this._tmpVector);
+                                    _this._anchorMesh.position.addInPlace(_this._tmpVector);
+                                }
+                                else {
+                                    // Scale from the position of the opposite corner                   
+                                    box.absolutePosition.subtractToRef(_this._anchorMesh.position, _this._tmpVector);
+                                    _this._anchorMesh.position.subtractInPlace(_this._tmpVector);
+                                }
                                 _this._anchorMesh.addChild(_this.attachedMesh);
                                 _this._anchorMesh.scaling.addInPlace(deltaScale);
                                 if (_this._anchorMesh.scaling.x < 0 || _this._anchorMesh.scaling.y < 0 || _this._anchorMesh.scaling.z < 0) {
                                     _this._anchorMesh.scaling.subtractInPlace(deltaScale);
                                 }
                                 _this._anchorMesh.removeChild(_this.attachedMesh);
+                                _this.restorePivotPoint();
                             }
                         });
                         // Selection/deselection
@@ -93633,6 +93659,31 @@ var BABYLON;
             _this.updateBoundingBox();
             return _this;
         }
+        BoundingBoxGizmo.prototype.removeAndStorePivotPoint = function () {
+            if (this.attachedMesh) {
+                // Save old pivot and set pivot to 0,0,0
+                this.attachedMesh.getPivotPointToRef(this._oldPivotPoint);
+                if (this._oldPivotPoint.equalsToFloats(0, 0, 0)) {
+                    return;
+                }
+                this.attachedMesh.setPivotMatrix(BABYLON.Matrix.IdentityReadOnly);
+                this._oldPivotPoint.subtractToRef(this.attachedMesh.getPivotPoint(), this._pivotTranslation);
+                this._tmpVector.copyFromFloats(1, 1, 1);
+                this._tmpVector.subtractInPlace(this.attachedMesh.scaling);
+                this._tmpVector.multiplyInPlace(this._pivotTranslation);
+                this.attachedMesh.position.addInPlace(this._tmpVector);
+            }
+        };
+        BoundingBoxGizmo.prototype.restorePivotPoint = function () {
+            if (this.attachedMesh && !this._oldPivotPoint.equalsToFloats(0, 0, 0)) {
+                this.attachedMesh.setPivotPoint(this._oldPivotPoint);
+                this._oldPivotPoint.subtractToRef(this.attachedMesh.getPivotPoint(), this._pivotTranslation);
+                this._tmpVector.copyFromFloats(1, 1, 1);
+                this._tmpVector.subtractInPlace(this.attachedMesh.scaling);
+                this._tmpVector.multiplyInPlace(this._pivotTranslation);
+                this.attachedMesh.position.subtractInPlace(this._tmpVector);
+            }
+        };
         BoundingBoxGizmo.prototype._attachedMeshChanged = function (value) {
             if (value) {
                 // Reset anchor mesh to match attached mesh's scale
@@ -93661,8 +93712,9 @@ var BABYLON;
          * Updates the bounding box information for the Gizmo
          */
         BoundingBoxGizmo.prototype.updateBoundingBox = function () {
-            this._update();
             if (this.attachedMesh) {
+                this.removeAndStorePivotPoint();
+                this._update();
                 // Rotate based on axis
                 if (!this.attachedMesh.rotationQuaternion) {
                     this.attachedMesh.rotationQuaternion = BABYLON.Quaternion.RotationYawPitchRoll(this.attachedMesh.rotation.y, this.attachedMesh.rotation.x, this.attachedMesh.rotation.z);
@@ -93752,6 +93804,7 @@ var BABYLON;
             }
             if (this.attachedMesh) {
                 this._existingMeshScale.copyFrom(this.attachedMesh.scaling);
+                this.restorePivotPoint();
             }
         };
         /**

+ 58 - 5
dist/preview release/babylon.no-module.max.js

@@ -11760,7 +11760,7 @@ var BABYLON;
              * Returns the current version of the framework
              */
             get: function () {
-                return "3.3.0-beta.2";
+                return "3.3.0-beta.3";
             },
             enumerable: true,
             configurable: true
@@ -33289,6 +33289,9 @@ var BABYLON;
                     position: instance.position.asArray(),
                     scaling: instance.scaling.asArray()
                 };
+                if (instance.parent) {
+                    serializationInstance.parentId = instance.parent.id;
+                }
                 if (instance.rotationQuaternion) {
                     serializationInstance.rotationQuaternion = instance.rotationQuaternion.asArray();
                 }
@@ -93377,6 +93380,7 @@ var BABYLON;
             _this._scaleDragSpeed = 0.2;
             _this._tmpQuaternion = new BABYLON.Quaternion();
             _this._tmpVector = new BABYLON.Vector3(0, 0, 0);
+            _this._tmpRotationMatrix = new BABYLON.Matrix();
             /**
              * If child meshes should be ignored when calculating the boudning box. This should be set to true to avoid perf hits with heavily nested meshes (Default: false)
              */
@@ -93417,7 +93421,13 @@ var BABYLON;
              * Fired when a rotation sphere drag is ended
              */
             _this.onRotationSphereDragEndObservable = new BABYLON.Observable();
+            /**
+             * Relative bounding box pivot used when scaling the attached mesh. When null object with scale from the opposite corner. 0.5,0.5,0.5 for center and 0.5,0,0.5 for bottom (Default: null)
+             */
+            _this.scalePivot = null;
             _this._existingMeshScale = new BABYLON.Vector3();
+            _this._oldPivotPoint = new BABYLON.Vector3();
+            _this._pivotTranslation = new BABYLON.Vector3();
             // Do not update the gizmo's scale so it has a fixed size to the object its attached to
             _this._updateScale = false;
             _this._anchorMesh = new BABYLON.AbstractMesh("anchor", gizmoLayer.utilityLayerScene);
@@ -93472,6 +93482,7 @@ var BABYLON;
                 _dragBehavior.onDragObservable.add(function (event) {
                     _this.onRotationSphereDragObservable.notifyObservers({});
                     if (_this.attachedMesh) {
+                        _this.removeAndStorePivotPoint();
                         var worldDragDirection = startingTurnDirection;
                         // Project the world right on to the drag plane
                         var toSub = event.dragPlaneNormal.scale(BABYLON.Vector3.Dot(event.dragPlaneNormal, worldDragDirection));
@@ -93505,6 +93516,7 @@ var BABYLON;
                             _this._anchorMesh.removeChild(_this.attachedMesh);
                         }
                         _this.updateBoundingBox();
+                        _this.restorePivotPoint();
                     }
                 });
                 // Selection/deselection
@@ -93539,19 +93551,33 @@ var BABYLON;
                         _dragBehavior.onDragObservable.add(function (event) {
                             _this.onScaleBoxDragObservable.notifyObservers({});
                             if (_this.attachedMesh) {
+                                _this.removeAndStorePivotPoint();
                                 var relativeDragDistance = (event.dragDistance / _this._boundingDimensions.length()) * _this._anchorMesh.scaling.length();
                                 var deltaScale = new BABYLON.Vector3(relativeDragDistance, relativeDragDistance, relativeDragDistance);
                                 deltaScale.scaleInPlace(_this._scaleDragSpeed);
                                 _this.updateBoundingBox();
-                                // Scale from the position of the opposite corner                   
-                                box.absolutePosition.subtractToRef(_this._anchorMesh.position, _this._tmpVector);
-                                _this._anchorMesh.position.subtractInPlace(_this._tmpVector);
+                                if (_this.scalePivot) {
+                                    _this.attachedMesh.getWorldMatrix().getRotationMatrixToRef(_this._tmpRotationMatrix);
+                                    // Move anchor to desired pivot point (Bottom left corner + dimension/2)
+                                    _this._boundingDimensions.scaleToRef(0.5, _this._tmpVector);
+                                    BABYLON.Vector3.TransformCoordinatesToRef(_this._tmpVector, _this._tmpRotationMatrix, _this._tmpVector);
+                                    _this._anchorMesh.position.subtractInPlace(_this._tmpVector);
+                                    _this._boundingDimensions.multiplyToRef(_this.scalePivot, _this._tmpVector);
+                                    BABYLON.Vector3.TransformCoordinatesToRef(_this._tmpVector, _this._tmpRotationMatrix, _this._tmpVector);
+                                    _this._anchorMesh.position.addInPlace(_this._tmpVector);
+                                }
+                                else {
+                                    // Scale from the position of the opposite corner                   
+                                    box.absolutePosition.subtractToRef(_this._anchorMesh.position, _this._tmpVector);
+                                    _this._anchorMesh.position.subtractInPlace(_this._tmpVector);
+                                }
                                 _this._anchorMesh.addChild(_this.attachedMesh);
                                 _this._anchorMesh.scaling.addInPlace(deltaScale);
                                 if (_this._anchorMesh.scaling.x < 0 || _this._anchorMesh.scaling.y < 0 || _this._anchorMesh.scaling.z < 0) {
                                     _this._anchorMesh.scaling.subtractInPlace(deltaScale);
                                 }
                                 _this._anchorMesh.removeChild(_this.attachedMesh);
+                                _this.restorePivotPoint();
                             }
                         });
                         // Selection/deselection
@@ -93600,6 +93626,31 @@ var BABYLON;
             _this.updateBoundingBox();
             return _this;
         }
+        BoundingBoxGizmo.prototype.removeAndStorePivotPoint = function () {
+            if (this.attachedMesh) {
+                // Save old pivot and set pivot to 0,0,0
+                this.attachedMesh.getPivotPointToRef(this._oldPivotPoint);
+                if (this._oldPivotPoint.equalsToFloats(0, 0, 0)) {
+                    return;
+                }
+                this.attachedMesh.setPivotMatrix(BABYLON.Matrix.IdentityReadOnly);
+                this._oldPivotPoint.subtractToRef(this.attachedMesh.getPivotPoint(), this._pivotTranslation);
+                this._tmpVector.copyFromFloats(1, 1, 1);
+                this._tmpVector.subtractInPlace(this.attachedMesh.scaling);
+                this._tmpVector.multiplyInPlace(this._pivotTranslation);
+                this.attachedMesh.position.addInPlace(this._tmpVector);
+            }
+        };
+        BoundingBoxGizmo.prototype.restorePivotPoint = function () {
+            if (this.attachedMesh && !this._oldPivotPoint.equalsToFloats(0, 0, 0)) {
+                this.attachedMesh.setPivotPoint(this._oldPivotPoint);
+                this._oldPivotPoint.subtractToRef(this.attachedMesh.getPivotPoint(), this._pivotTranslation);
+                this._tmpVector.copyFromFloats(1, 1, 1);
+                this._tmpVector.subtractInPlace(this.attachedMesh.scaling);
+                this._tmpVector.multiplyInPlace(this._pivotTranslation);
+                this.attachedMesh.position.subtractInPlace(this._tmpVector);
+            }
+        };
         BoundingBoxGizmo.prototype._attachedMeshChanged = function (value) {
             if (value) {
                 // Reset anchor mesh to match attached mesh's scale
@@ -93628,8 +93679,9 @@ var BABYLON;
          * Updates the bounding box information for the Gizmo
          */
         BoundingBoxGizmo.prototype.updateBoundingBox = function () {
-            this._update();
             if (this.attachedMesh) {
+                this.removeAndStorePivotPoint();
+                this._update();
                 // Rotate based on axis
                 if (!this.attachedMesh.rotationQuaternion) {
                     this.attachedMesh.rotationQuaternion = BABYLON.Quaternion.RotationYawPitchRoll(this.attachedMesh.rotation.y, this.attachedMesh.rotation.x, this.attachedMesh.rotation.z);
@@ -93719,6 +93771,7 @@ var BABYLON;
             }
             if (this.attachedMesh) {
                 this._existingMeshScale.copyFrom(this.attachedMesh.scaling);
+                this.restorePivotPoint();
             }
         };
         /**

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


+ 58 - 5
dist/preview release/es6.js

@@ -11760,7 +11760,7 @@ var BABYLON;
              * Returns the current version of the framework
              */
             get: function () {
-                return "3.3.0-beta.2";
+                return "3.3.0-beta.3";
             },
             enumerable: true,
             configurable: true
@@ -33289,6 +33289,9 @@ var BABYLON;
                     position: instance.position.asArray(),
                     scaling: instance.scaling.asArray()
                 };
+                if (instance.parent) {
+                    serializationInstance.parentId = instance.parent.id;
+                }
                 if (instance.rotationQuaternion) {
                     serializationInstance.rotationQuaternion = instance.rotationQuaternion.asArray();
                 }
@@ -93377,6 +93380,7 @@ var BABYLON;
             _this._scaleDragSpeed = 0.2;
             _this._tmpQuaternion = new BABYLON.Quaternion();
             _this._tmpVector = new BABYLON.Vector3(0, 0, 0);
+            _this._tmpRotationMatrix = new BABYLON.Matrix();
             /**
              * If child meshes should be ignored when calculating the boudning box. This should be set to true to avoid perf hits with heavily nested meshes (Default: false)
              */
@@ -93417,7 +93421,13 @@ var BABYLON;
              * Fired when a rotation sphere drag is ended
              */
             _this.onRotationSphereDragEndObservable = new BABYLON.Observable();
+            /**
+             * Relative bounding box pivot used when scaling the attached mesh. When null object with scale from the opposite corner. 0.5,0.5,0.5 for center and 0.5,0,0.5 for bottom (Default: null)
+             */
+            _this.scalePivot = null;
             _this._existingMeshScale = new BABYLON.Vector3();
+            _this._oldPivotPoint = new BABYLON.Vector3();
+            _this._pivotTranslation = new BABYLON.Vector3();
             // Do not update the gizmo's scale so it has a fixed size to the object its attached to
             _this._updateScale = false;
             _this._anchorMesh = new BABYLON.AbstractMesh("anchor", gizmoLayer.utilityLayerScene);
@@ -93472,6 +93482,7 @@ var BABYLON;
                 _dragBehavior.onDragObservable.add(function (event) {
                     _this.onRotationSphereDragObservable.notifyObservers({});
                     if (_this.attachedMesh) {
+                        _this.removeAndStorePivotPoint();
                         var worldDragDirection = startingTurnDirection;
                         // Project the world right on to the drag plane
                         var toSub = event.dragPlaneNormal.scale(BABYLON.Vector3.Dot(event.dragPlaneNormal, worldDragDirection));
@@ -93505,6 +93516,7 @@ var BABYLON;
                             _this._anchorMesh.removeChild(_this.attachedMesh);
                         }
                         _this.updateBoundingBox();
+                        _this.restorePivotPoint();
                     }
                 });
                 // Selection/deselection
@@ -93539,19 +93551,33 @@ var BABYLON;
                         _dragBehavior.onDragObservable.add(function (event) {
                             _this.onScaleBoxDragObservable.notifyObservers({});
                             if (_this.attachedMesh) {
+                                _this.removeAndStorePivotPoint();
                                 var relativeDragDistance = (event.dragDistance / _this._boundingDimensions.length()) * _this._anchorMesh.scaling.length();
                                 var deltaScale = new BABYLON.Vector3(relativeDragDistance, relativeDragDistance, relativeDragDistance);
                                 deltaScale.scaleInPlace(_this._scaleDragSpeed);
                                 _this.updateBoundingBox();
-                                // Scale from the position of the opposite corner                   
-                                box.absolutePosition.subtractToRef(_this._anchorMesh.position, _this._tmpVector);
-                                _this._anchorMesh.position.subtractInPlace(_this._tmpVector);
+                                if (_this.scalePivot) {
+                                    _this.attachedMesh.getWorldMatrix().getRotationMatrixToRef(_this._tmpRotationMatrix);
+                                    // Move anchor to desired pivot point (Bottom left corner + dimension/2)
+                                    _this._boundingDimensions.scaleToRef(0.5, _this._tmpVector);
+                                    BABYLON.Vector3.TransformCoordinatesToRef(_this._tmpVector, _this._tmpRotationMatrix, _this._tmpVector);
+                                    _this._anchorMesh.position.subtractInPlace(_this._tmpVector);
+                                    _this._boundingDimensions.multiplyToRef(_this.scalePivot, _this._tmpVector);
+                                    BABYLON.Vector3.TransformCoordinatesToRef(_this._tmpVector, _this._tmpRotationMatrix, _this._tmpVector);
+                                    _this._anchorMesh.position.addInPlace(_this._tmpVector);
+                                }
+                                else {
+                                    // Scale from the position of the opposite corner                   
+                                    box.absolutePosition.subtractToRef(_this._anchorMesh.position, _this._tmpVector);
+                                    _this._anchorMesh.position.subtractInPlace(_this._tmpVector);
+                                }
                                 _this._anchorMesh.addChild(_this.attachedMesh);
                                 _this._anchorMesh.scaling.addInPlace(deltaScale);
                                 if (_this._anchorMesh.scaling.x < 0 || _this._anchorMesh.scaling.y < 0 || _this._anchorMesh.scaling.z < 0) {
                                     _this._anchorMesh.scaling.subtractInPlace(deltaScale);
                                 }
                                 _this._anchorMesh.removeChild(_this.attachedMesh);
+                                _this.restorePivotPoint();
                             }
                         });
                         // Selection/deselection
@@ -93600,6 +93626,31 @@ var BABYLON;
             _this.updateBoundingBox();
             return _this;
         }
+        BoundingBoxGizmo.prototype.removeAndStorePivotPoint = function () {
+            if (this.attachedMesh) {
+                // Save old pivot and set pivot to 0,0,0
+                this.attachedMesh.getPivotPointToRef(this._oldPivotPoint);
+                if (this._oldPivotPoint.equalsToFloats(0, 0, 0)) {
+                    return;
+                }
+                this.attachedMesh.setPivotMatrix(BABYLON.Matrix.IdentityReadOnly);
+                this._oldPivotPoint.subtractToRef(this.attachedMesh.getPivotPoint(), this._pivotTranslation);
+                this._tmpVector.copyFromFloats(1, 1, 1);
+                this._tmpVector.subtractInPlace(this.attachedMesh.scaling);
+                this._tmpVector.multiplyInPlace(this._pivotTranslation);
+                this.attachedMesh.position.addInPlace(this._tmpVector);
+            }
+        };
+        BoundingBoxGizmo.prototype.restorePivotPoint = function () {
+            if (this.attachedMesh && !this._oldPivotPoint.equalsToFloats(0, 0, 0)) {
+                this.attachedMesh.setPivotPoint(this._oldPivotPoint);
+                this._oldPivotPoint.subtractToRef(this.attachedMesh.getPivotPoint(), this._pivotTranslation);
+                this._tmpVector.copyFromFloats(1, 1, 1);
+                this._tmpVector.subtractInPlace(this.attachedMesh.scaling);
+                this._tmpVector.multiplyInPlace(this._pivotTranslation);
+                this.attachedMesh.position.subtractInPlace(this._tmpVector);
+            }
+        };
         BoundingBoxGizmo.prototype._attachedMeshChanged = function (value) {
             if (value) {
                 // Reset anchor mesh to match attached mesh's scale
@@ -93628,8 +93679,9 @@ var BABYLON;
          * Updates the bounding box information for the Gizmo
          */
         BoundingBoxGizmo.prototype.updateBoundingBox = function () {
-            this._update();
             if (this.attachedMesh) {
+                this.removeAndStorePivotPoint();
+                this._update();
                 // Rotate based on axis
                 if (!this.attachedMesh.rotationQuaternion) {
                     this.attachedMesh.rotationQuaternion = BABYLON.Quaternion.RotationYawPitchRoll(this.attachedMesh.rotation.y, this.attachedMesh.rotation.x, this.attachedMesh.rotation.z);
@@ -93719,6 +93771,7 @@ var BABYLON;
             }
             if (this.attachedMesh) {
                 this._existingMeshScale.copyFrom(this.attachedMesh.scaling);
+                this.restorePivotPoint();
             }
         };
         /**

+ 1 - 1
dist/preview release/glTF2Interface/package.json

@@ -1,7 +1,7 @@
 {
     "name": "babylonjs-gltf2interface",
     "description": "A typescript declaration of babylon's gltf2 inteface.",
-    "version": "3.3.0-beta.2",
+    "version": "3.3.0-beta.3",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"

+ 1 - 1
dist/preview release/gui/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-gui",
     "description": "The Babylon.js GUI library is an extension you can use to generate interactive user interface. It is build on top of the DynamicTexture.",
-    "version": "3.3.0-beta.2",
+    "version": "3.3.0-beta.3",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"

+ 1 - 1
dist/preview release/inspector/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-inspector",
     "description": "The Babylon.js inspector.",
-    "version": "3.3.0-beta.2",
+    "version": "3.3.0-beta.3",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"

+ 2 - 2
dist/preview release/loaders/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-loaders",
     "description": "The Babylon.js file loaders library is an extension you can use to load different 3D file types into a Babylon scene.",
-    "version": "3.3.0-beta.2",
+    "version": "3.3.0-beta.3",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"
@@ -27,7 +27,7 @@
     ],
     "license": "Apache-2.0",
     "dependencies": {
-        "babylonjs-gltf2interface": "3.3.0-beta.2"
+        "babylonjs-gltf2interface": "3.3.0-beta.3"
     },
     "peerDependencies": {
         "babylonjs": ">=3.2.0-alpha"

+ 1 - 1
dist/preview release/materialsLibrary/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-materials",
     "description": "The Babylon.js materials library is a collection of advanced materials to be used in a Babylon.js scene.",
-    "version": "3.3.0-beta.2",
+    "version": "3.3.0-beta.3",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"

+ 1 - 1
dist/preview release/postProcessesLibrary/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-post-process",
     "description": "The Babylon.js materials library is a collection of advanced materials to be used in a Babylon.js scene.",
-    "version": "3.3.0-beta.2",
+    "version": "3.3.0-beta.3",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"

+ 1 - 1
dist/preview release/proceduralTexturesLibrary/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-procedural-textures",
     "description": "The Babylon.js materials library is a collection of advanced materials to be used in a Babylon.js scene.",
-    "version": "3.3.0-beta.2",
+    "version": "3.3.0-beta.3",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"

+ 2 - 2
dist/preview release/serializers/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-serializers",
     "description": "The Babylon.js serializers library is an extension you can use to serialize Babylon scenes.",
-    "version": "3.3.0-beta.2",
+    "version": "3.3.0-beta.3",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"
@@ -27,7 +27,7 @@
     ],
     "license": "Apache-2.0",
     "dependencies": {
-        "babylonjs-gltf2interface": "3.3.0-beta.2"
+        "babylonjs-gltf2interface": "3.3.0-beta.3"
     },
     "peerDependencies": {
         "babylonjs": ">=3.2.0-alpha"

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


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


+ 1 - 1
package.json

@@ -9,7 +9,7 @@
     ],
     "name": "babylonjs",
     "description": "Babylon.js is a JavaScript 3D engine based on webgl.",
-    "version": "3.3.0-beta.2",
+    "version": "3.3.0-beta.3",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"

+ 1 - 1
src/Engine/babylon.engine.ts

@@ -475,7 +475,7 @@
          * Returns the current version of the framework
          */
         public static get Version(): string {
-            return "3.3.0-beta.2";
+            return "3.3.0-beta.3";
         }
 
         // Updatable statics so stick with vars here