Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/rendering/InstancedDecorations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ function extractMaterial(object: THREE.Object3D, assetId?: string): THREE.Materi
if (!originalMaterial) return null;

// Clone the material to avoid modifying the original
const material = originalMaterial.clone();
// Type assertion needed because TS doesn't track callback assignments
const material = (originalMaterial as THREE.Material).clone();

// Apply rendering hints for MeshStandardMaterial
if ((material as THREE.MeshStandardMaterial).isMeshStandardMaterial) {
Expand Down