|
@@ -173,7 +173,7 @@ export class CameraAnimation extends THREE.EventDispatcher{
|
|
|
|
|
|
}else if(length >= 2){
|
|
|
position.copy(this.posCurve.points[index-1].clone().add(this.posCurve.points[index]).multiplyScalar(0.5));
|
|
|
- target.copy(this.targets[index-1].position.clone().add(this.targets[index]).multiplyScalar(0.5));
|
|
|
+ target.copy(this.targets[index-1].position.clone().add(this.targets[index].position).multiplyScalar(0.5));
|
|
|
}
|
|
|
}else{
|
|
|
position.copy(posInfo.position)
|
|
@@ -217,8 +217,8 @@ export class CameraAnimation extends THREE.EventDispatcher{
|
|
|
index = this.targets.indexOf(e.target)
|
|
|
}
|
|
|
LineDraw.moveLine(this.targetLines.children[index], [this.posCurve.points[index], this.targets[index].position] )
|
|
|
-
|
|
|
- this.updateFrustum()
|
|
|
+ viewer.dispatchEvent('content_changed')
|
|
|
+ this.updateFrustum()
|
|
|
}
|
|
|
|
|
|
updatePathCallback(){
|