Skip to content

Commit

Permalink
fix accidental modification (google#3733)
Browse files Browse the repository at this point in the history
  • Loading branch information
elalish authored Aug 24, 2022
1 parent c6107ae commit 69521e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/model-viewer/src/three-components/ModelScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ export class ModelScene extends Scene {
* Gets the point in model coordinates the model should orbit/pivot around.
*/
getTarget(): Vector3 {
return this.goalTarget.multiplyScalar(-1).clone();
return this.goalTarget.clone().multiplyScalar(-1);
}

/**
Expand Down

0 comments on commit 69521e0

Please sign in to comment.