|
@@ -12560,6 +12560,7 @@ var BABYLON;
|
|
this.forcePointsCloud = false;
|
|
this.forcePointsCloud = false;
|
|
this.forceShowBoundingBoxes = false;
|
|
this.forceShowBoundingBoxes = false;
|
|
this.animationsEnabled = true;
|
|
this.animationsEnabled = true;
|
|
|
|
+ this.constantlyUpdateMeshUnderPointer = false;
|
|
this.cameraToUseForPointers = null; // Define this parameter if you are using multiple cameras and you want to specify which one should be used for pointer position
|
|
this.cameraToUseForPointers = null; // Define this parameter if you are using multiple cameras and you want to specify which one should be used for pointer position
|
|
// Fog
|
|
// Fog
|
|
/**
|
|
/**
|
|
@@ -12857,7 +12858,7 @@ var BABYLON;
|
|
var canvas = _this._engine.getRenderingCanvas();
|
|
var canvas = _this._engine.getRenderingCanvas();
|
|
_this._updatePointerPosition(evt);
|
|
_this._updatePointerPosition(evt);
|
|
// Meshes
|
|
// Meshes
|
|
- var pickResult = _this.pick(_this._pointerX, _this._pointerY, function (mesh) { return mesh.isPickable && mesh.isVisible && mesh.isReady(); }, false, _this.cameraToUseForPointers);
|
|
|
|
|
|
+ var pickResult = _this.pick(_this._pointerX, _this._pointerY, function (mesh) { return mesh.isPickable && mesh.isVisible && mesh.isReady() && (_this.constantlyUpdateMeshUnderPointer || mesh.actionManager !== null && mesh.actionManager !== undefined); }, false, _this.cameraToUseForPointers);
|
|
if (pickResult.hit && pickResult.pickedMesh) {
|
|
if (pickResult.hit && pickResult.pickedMesh) {
|
|
_this._meshUnderPointer = pickResult.pickedMesh;
|
|
_this._meshUnderPointer = pickResult.pickedMesh;
|
|
_this.setPointerOverMesh(pickResult.pickedMesh);
|
|
_this.setPointerOverMesh(pickResult.pickedMesh);
|
|
@@ -19530,7 +19531,6 @@ var BABYLON;
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
needNormals = true;
|
|
needNormals = true;
|
|
- needUVs = true;
|
|
|
|
this._defines.REFLECTION = true;
|
|
this._defines.REFLECTION = true;
|
|
if (this.roughness > 0) {
|
|
if (this.roughness > 0) {
|
|
this._defines.ROUGHNESS = true;
|
|
this._defines.ROUGHNESS = true;
|