Skip to content

Commit

Permalink
fix: Applied model translation multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeUtan committed May 6, 2021
1 parent 807bd55 commit 9fbf516
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/webview/rendererPanel/Model.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@
const elementsGroup = new THREE.Group();
const wireframeGroup = new THREE.Group();
elementsGroup.translateX(-8);
elementsGroup.translateZ(-8);
wireframeGroup.translateX(-8);
wireframeGroup.translateZ(-8);
// Add model to container
$: if (container != null) {
elementsGroup.translateX(-8);
elementsGroup.translateZ(-8);
container.add(elementsGroup);
wireframeGroup.translateX(-8);
wireframeGroup.translateZ(-8);
container.add(wireframeGroup);
}
Expand Down

0 comments on commit 9fbf516

Please sign in to comment.