Remove height provider from geo-three

This commit is contained in:
Fuhrmann 2025-04-01 14:38:07 +02:00
parent 233216c284
commit b544c315b0
5 changed files with 152 additions and 11 deletions

View file

@ -259,9 +259,9 @@ export function Form() {
<div className="flex flex-col gap-2">
{sceneView?.model.children.map((child) => {
const key = `toggle-visibility-${child.name}`;
const color = `#${(
(child as Mesh).material as MeshStandardMaterial
).color.getHexString()}`;
//const color = `#${(
// (child as Mesh).material as MeshStandardMaterial
//).color.getHexString()}`;
const visible = (child as Mesh).visible;
return (
@ -272,7 +272,7 @@ export function Form() {
<span
className="inline-block w-5 h-5 flex-none rounded"
style={{
backgroundColor: color,
backgroundColor: "white",
}}
></span>
<input