@archvisioninc/canvas 3.1.7 → 3.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -270,6 +270,7 @@ const handleMousePointerPick = e => {
|
|
|
270
270
|
selectedMeshes.includes(selectedMesh) ? removeSelectedMesh(selectedMesh) : addNewMesh(selectedMesh);
|
|
271
271
|
};
|
|
272
272
|
const handleMousePointerMove = () => {
|
|
273
|
+
if (props.previewMode) return;
|
|
273
274
|
const ray = scene.createPickingRay(scene.pointerX, scene.pointerY, BABYLON.Matrix.Identity(), scene.activeCamera);
|
|
274
275
|
const {
|
|
275
276
|
hit,
|
package/package.json
CHANGED
|
@@ -346,6 +346,7 @@ const handleMousePointerPick = e => {
|
|
|
346
346
|
};
|
|
347
347
|
|
|
348
348
|
const handleMousePointerMove = () => {
|
|
349
|
+
if (props.previewMode) return;
|
|
349
350
|
const ray = scene.createPickingRay(scene.pointerX, scene.pointerY, BABYLON.Matrix.Identity(), scene.activeCamera);
|
|
350
351
|
const { hit, pickedMesh } = scene.pickWithRay(ray);
|
|
351
352
|
|
package/src/scenes/App/App.js
CHANGED
|
@@ -10,7 +10,7 @@ import Canvas from 'package/Canvas';
|
|
|
10
10
|
import _ from 'lodash';
|
|
11
11
|
|
|
12
12
|
const materialMode = false;
|
|
13
|
-
const previewMode =
|
|
13
|
+
const previewMode = true;
|
|
14
14
|
const demoScene = false;
|
|
15
15
|
const shaderballGuid = '21-791A-0D8D-F8A0-63F7-5086-471F-69A7-7AB0-00';
|
|
16
16
|
|