Skip to content
Merged
Changes from 1 commit
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
4 changes: 3 additions & 1 deletion packages/viewer/src/lib/materials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ function getCacheKey(props: MaterialProperties, shading: RenderShading): string
function getTextureKey(material?: MaterialSchema): string {
const texture = material?.texture
if (!texture) return 'none'
const repeat = texture.repeat?.join('x') ?? 'default'
const repeat = Array.isArray(texture.repeat)
? texture.repeat.join('x')
: (texture.repeat ?? 'default')
Comment thread
cursor[bot] marked this conversation as resolved.
Outdated
const scale = texture.scale ?? 'default'
return `${texture.url}-${repeat}-${scale}`
}
Expand Down
Loading