Skip to content

Commit

Permalink
colorTexture is optional, account for this (#28417)
Browse files Browse the repository at this point in the history
Co-authored-by: aardgoose <[email protected]>
  • Loading branch information
aardgoose and aardgoose authored May 18, 2024
1 parent a379e9a commit 0dee424
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/jsm/renderers/common/RenderObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,12 @@ export default class RenderObject {
if ( object.isBatchedMesh ) {

cacheKey += object._matricesTexture.uuid + ',';
cacheKey += object._colorsTexture.uuid + ',';

if ( object._colorsTexture !== null ) {

cacheKey += object._colorsTexture.uuid + ',';

}

}

Expand Down

0 comments on commit 0dee424

Please sign in to comment.