allow separation of 3d file into individual meshes

This commit is contained in:
2026-04-08 11:16:24 +03:00
parent 4aa9bcdbd6
commit 8d9c7216c3
5 changed files with 14 additions and 4 deletions
+1 -2
View File
@@ -213,7 +213,6 @@ export default {
},
selectObject(oid){
console.log('Selecting object', oid)
this.currentObject = this.flatObjects[oid]?.value;
this.selectedObject = [oid];
engine.transformControls.attach(this.currentObject.__o);
@@ -226,7 +225,7 @@ export default {
targetClick(e){
if (performance.now() - this.pointerDownTime < 200){
let intersects = engine.intersect(e, this.$refs.target, engine.activeObjects.children, true);
let intersects = engine.intersect(e, this.$refs.target, this.flatObjects.map(o=>o.value.__o), true);
if (intersects.length){
this.selectObject(intersects[0].object.__pn_id)
}else{