Skip to content

Commit

Permalink
goggleの統合 (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
toufu-24 authored Nov 4, 2024
2 parents 5a917f6 + 57ec15f commit 3fb0e42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/components/ModelConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export function ModelConfig({
"accessoryeyepatch",
"accessoryglasses",
"goggle",
"goggle_1",
"accessoryhalo",
];

Expand Down
4 changes: 4 additions & 0 deletions app/components/ModelVisibility.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export function getMeshVisibility() {
const updateVisibility = useCallback((key: string, value: boolean) => {
if (instanceRef.current) {
instanceRef.current[key] = value; // 値を更新
if (key === "goggle") {
// googleとgoggle_1の同時操作
instanceRef.current.goggle_1 = value;
}
setVisibility({ ...instanceRef.current }); // 状態を更新
}
}, []);
Expand Down

0 comments on commit 3fb0e42

Please sign in to comment.