|
@@ -73480,6 +73480,10 @@ var BABYLON;
|
|
*/
|
|
*/
|
|
this.onNewMeshSelected = new BABYLON.Observable();
|
|
this.onNewMeshSelected = new BABYLON.Observable();
|
|
/**
|
|
/**
|
|
|
|
+ * Observable raised when a new mesh is picked based on meshSelectionPredicate
|
|
|
|
+ */
|
|
|
|
+ this.onNewMeshPicked = new BABYLON.Observable();
|
|
|
|
+ /**
|
|
* Observable raised before camera teleportation
|
|
* Observable raised before camera teleportation
|
|
*/
|
|
*/
|
|
this.onBeforeCameraTeleport = new BABYLON.Observable();
|
|
this.onBeforeCameraTeleport = new BABYLON.Observable();
|
|
@@ -74686,6 +74690,7 @@ var BABYLON;
|
|
this._teleportationAllowed = false;
|
|
this._teleportationAllowed = false;
|
|
if (hit.pickedMesh !== this._currentMeshSelected) {
|
|
if (hit.pickedMesh !== this._currentMeshSelected) {
|
|
if (this.meshSelectionPredicate(hit.pickedMesh)) {
|
|
if (this.meshSelectionPredicate(hit.pickedMesh)) {
|
|
|
|
+ this.onNewMeshPicked.notifyObservers(hit);
|
|
this._currentMeshSelected = hit.pickedMesh;
|
|
this._currentMeshSelected = hit.pickedMesh;
|
|
if (hit.pickedMesh.isPickable && hit.pickedMesh.actionManager) {
|
|
if (hit.pickedMesh.isPickable && hit.pickedMesh.actionManager) {
|
|
this.changeGazeColor(new BABYLON.Color3(0, 0, 1));
|
|
this.changeGazeColor(new BABYLON.Color3(0, 0, 1));
|
|
@@ -74698,7 +74703,7 @@ var BABYLON;
|
|
this._isActionableMesh = false;
|
|
this._isActionableMesh = false;
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
- this.onNewMeshSelected.notifyObservers(hit);
|
|
|
|
|
|
+ this.onNewMeshSelected.notifyObservers(this._currentMeshSelected);
|
|
}
|
|
}
|
|
catch (err) {
|
|
catch (err) {
|
|
BABYLON.Tools.Warn("Error in your custom logic onNewMeshSelected: " + err);
|
|
BABYLON.Tools.Warn("Error in your custom logic onNewMeshSelected: " + err);
|
|
@@ -84911,6 +84916,7 @@ var BABYLON;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ sampler.interpolation = sampler.interpolation || "LINEAR";
|
|
var getNextKey;
|
|
var getNextKey;
|
|
switch (sampler.interpolation) {
|
|
switch (sampler.interpolation) {
|
|
case "LINEAR": {
|
|
case "LINEAR": {
|