Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RenderObject: Fix material cache key regression. #28935

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Jul 22, 2024

Fixed #28927

Description

This PR fixes a regression that was introduced in #28823 where the material cache key computation has been updated.

@Mugen87 Mugen87 added this to the r167 milestone Jul 22, 2024
Copy link

github-actions bot commented Jul 22, 2024

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
684 kB (169.4 kB) 684 kB (169.4 kB) +0 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Filesize dev Filesize PR Diff
460.9 kB (111.2 kB) 460.9 kB (111.2 kB) +0 B

@@ -214,6 +219,10 @@ export default class RenderObject {

valueKey += '}';

} else {

valueKey = String( value );
Copy link
Collaborator Author

@Mugen87 Mugen87 Jul 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sunag This additional branch is required if value is not null but also not number or object (e.g. boolean). Previously the value was ignored. Now it is honored in the cache key.

@Mugen87 Mugen87 merged commit 5c5f02d into mrdoob:dev Jul 22, 2024
12 checks passed
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.

WebGPURenderer: errors thrown rendering line segments
1 participant