autosave fixes
This commit is contained in:
@@ -59,6 +59,7 @@ export const ObjectView = observer(function ({ object }: ObjectViewProps) {
|
||||
}
|
||||
<group
|
||||
ref={groupRef}
|
||||
name={`${object.id} (${object.typeId} instance)`}
|
||||
position={object.position}
|
||||
rotation={object.rotation}
|
||||
scale={object.scale}
|
||||
@@ -70,7 +71,11 @@ export const ObjectView = observer(function ({ object }: ObjectViewProps) {
|
||||
const color = (v.color ?? vt?.color) ?? 'white';
|
||||
const opacity = (v.opacity ?? vt?.opacity) ?? 1;
|
||||
return (
|
||||
<mesh key={idx} position={v.position}>
|
||||
<mesh
|
||||
key={idx}
|
||||
name={`voxel ${idx} [${v.position}]`}
|
||||
position={v.position}
|
||||
>
|
||||
<boxGeometry args={[1, 1, 1]} />
|
||||
<meshStandardMaterial
|
||||
color={color}
|
||||
|
||||
Reference in New Issue
Block a user