diff --git a/package.json b/package.json index 9bf953b..662f196 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "weas", - "version": "0.1.1", + "version": "0.1.2", "description": "WEAS (Web Environment for Atomic Structures) is a JavaScript library to visualize and manipulate the atomistic structures directly in the web browser", "main": "src/index.js", "scripts": { diff --git a/src/atoms/AtomsViewer.js b/src/atoms/AtomsViewer.js index 09e9211..43cd9d0 100644 --- a/src/atoms/AtomsViewer.js +++ b/src/atoms/AtomsViewer.js @@ -523,6 +523,7 @@ class AtomsViewer { }); this.atomsMesh.add(this.highlightAtomsMesh); this.highlightAtomsMesh.material.opacity = 0.6; + this.highlightAtomsMesh.layers.set(1); // Set the layer to 1 to make it not selectable this.updateHighlightAtomsMesh(this.selectedAtomsIndices); } diff --git a/src/core/SceneManager.js b/src/core/SceneManager.js index 30378b6..08d135d 100644 --- a/src/core/SceneManager.js +++ b/src/core/SceneManager.js @@ -10,7 +10,7 @@ export class WeasScene extends THREE.Scene { } add(object) { - console.log("add object", object); + // console.log("add object", object); super.add(object); this.dispatchObjectEvent({ data: object.toJSON(), @@ -20,7 +20,7 @@ export class WeasScene extends THREE.Scene { } remove(object) { - console.log("remove object", object); + // console.log("remove object", object); // if object is a string, find it by uuid if (typeof object === "string") { object = this.getObjectByProperty("uuid", object); diff --git a/src/core/SelectionManager.js b/src/core/SelectionManager.js index 9dfa269..fc04290 100644 --- a/src/core/SelectionManager.js +++ b/src/core/SelectionManager.js @@ -31,7 +31,7 @@ export class SelectionManager { } set selectedObjects(objects) { - console.log("Setting selected objects: ", objects); + // console.log("Setting selected objects: ", objects); // skip nonSelectable objects objects = objects.filter((object) => { return !object.userData.notSelectable; @@ -166,7 +166,7 @@ export class SelectionManager { Object.keys(this.selectedInstances).forEach((objectUuid) => { const object = this.tjs.scene.getObjectByProperty("uuid", objectUuid); if (!object || !object.userData.vertexPoints) { - console.log("Object or vertex points not found"); + // console.log("Object or vertex points not found"); return; }