Skip to content

Commit

Permalink
remove option to select cullfaces on click
Browse files Browse the repository at this point in the history
  • Loading branch information
memelotsqui committed Nov 23, 2023
1 parent 2ce31de commit deccb04
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/components/TraitInformation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default function TraitInformation({animationManager, lookatManager}){
const [cullInDistance, setCullInDistance] = useState(0);
const [cullLayer, setCullLayer] = useState(0);
const [animationName, setAnimationName] = useState(animationManager.getCurrentAnimationName());
const [displayCullFaces, setDisplayCullFaces] = useState(local["traitInformation_display_cull"] == null ? false : local["traitInformation_display_cull"]);
const [hasMouseLook, setHasMouseLook] = useState(lookatManager.userActivated);

useEffect(() => {
Expand Down Expand Up @@ -74,12 +73,6 @@ export default function TraitInformation({animationManager, lookatManager}){
// Perform any additional actions or logic based on the checkbox state change
};

const handleDisplayCullFaces = (event) =>{
setDisplayCullFaces(event.target.checked);
local["traitInformation_display_cull"] = event.target.checked;
}


return (
displayTraitOption != null ? (
<div>
Expand Down Expand Up @@ -158,22 +151,6 @@ export default function TraitInformation({animationManager, lookatManager}){
</label>
</div>
</div>
<div className={styles["traitInfoText"]}>
<div className={styles["checkboxHolder"]}>
<div>

Display Hidden Faces on click
</div>
<label className={styles["custom-checkbox"]}>
<input
type="checkbox"
checked={displayCullFaces}
onChange={handleDisplayCullFaces}
/>
<div className={styles["checkbox-container"]}></div>
</label>
</div>
</div>

</div>

Expand Down

0 comments on commit deccb04

Please sign in to comment.