Skip to content

Commit

Permalink
set by default click to add faces
Browse files Browse the repository at this point in the history
  • Loading branch information
memelotsqui committed Nov 23, 2023
1 parent 51a9d6b commit 2ce31de
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/Scene.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ export default function Scene({sceneModel, lookatManager}) {
const setOriginalInidicesAndColliders = () => {
avatarModel.traverse((child)=>{
if (child.isMesh) {
if (child.userData.lastBoundsTree){
child.userData.lastBoundsTree = child.geometry.boundsTree;
child.geometry.disposeBoundsTree();
}
if (child.userData.origIndexBuffer){
child.userData.clippedIndexGeometry = child.geometry.index.clone();
child.geometry.setIndex(child.userData.origIndexBuffer);
Expand All @@ -145,7 +141,6 @@ export default function Scene({sceneModel, lookatManager}) {
if (child.isMesh) {
if (child.userData.origIndexBuffer){
child.geometry.setIndex(child.userData.clippedIndexGeometry);
child.geometry.boundsTree = child.userData.lastBoundsTree;
}
}
})
Expand Down Expand Up @@ -193,7 +188,7 @@ export default function Scene({sceneModel, lookatManager}) {

const isCtrlPressed = event.ctrlKey;

const displayCullFaces = local["traitInformation_display_cull"] == null ? false : local["traitInformation_display_cull"];
const displayCullFaces = true;//local["traitInformation_display_cull"] == null ? false : local["traitInformation_display_cull"];
if (displayCullFaces){
setOriginalInidicesAndColliders();

Expand Down

0 comments on commit 2ce31de

Please sign in to comment.