Skip to content

fix: prevent material corruption in instanced decorations#1060

Merged
braedonsaunders merged 1 commit into
mainfrom
claude/identify-legacy-visual-fields-Gl0mv
Jan 26, 2026
Merged

fix: prevent material corruption in instanced decorations#1060
braedonsaunders merged 1 commit into
mainfrom
claude/identify-legacy-visual-fields-Gl0mv

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner
  • extractMaterial now clones material before applying rendering hints to avoid corrupting original asset materials
  • Fix InstancedTrees using undefined variables (instancedGeometry/instancedMaterial) which caused runtime errors
  • Fix InstancedRocks and InstancedCrystals double-cloning materials unnecessarily
  • Each mesh (playable/border) now gets its own properly cloned material

This fixes the white rocks bug where rock materials appeared incorrectly.

- extractMaterial now clones material before applying rendering hints
  to avoid corrupting original asset materials
- Fix InstancedTrees using undefined variables (instancedGeometry/instancedMaterial)
  which caused runtime errors
- Fix InstancedRocks and InstancedCrystals double-cloning materials unnecessarily
- Each mesh (playable/border) now gets its own properly cloned material

This fixes the white rocks bug where rock materials appeared incorrectly.
@braedonsaunders braedonsaunders merged commit a84c83c into main Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants