master
howard 2021-04-12 19:44:21 -07:00
parent 8aeb5409c4
commit 24ee076438
1 changed files with 3 additions and 1 deletions

View File

@ -156,7 +156,7 @@ export function _onMoveAngle(point, line) {
// point.userData.offset = tagOffset.toArray() // save offset vector from center // point.userData.offset = tagOffset.toArray() // save offset vector from center
point.userData.offset = tagOffset // save offset vector from center point.userData.offset = tagOffset // save offset vector from center
tagOffset = undefined // tagOffset = undefined
sc.render() sc.render()
} }
@ -286,7 +286,9 @@ function update(linegeom, pointgeom, _l1, _l2) {
tagOffset = vecArr[i++].subVectors(p3, center) tagOffset = vecArr[i++].subVectors(p3, center)
// } else if (Array.isArray(tagOffset)) { // } else if (Array.isArray(tagOffset)) {
// tagOffset = new THREE.Vector2(tagOffset[0],tagOffset[1]) // tagOffset = new THREE.Vector2(tagOffset[0],tagOffset[1])
console.log('undefined')
} else { } else {
console.log('tagdefined', tagOffset)
p3.addVectors(center, tagOffset) p3.addVectors(center, tagOffset)
} }