Skip to content

Conversation

@crazylogic03
Copy link

The copy method in Material was missing the allowOverride property that is defined in the constructor. When cloning a Material instance, this property was not copied to the new material, causing incorrect behavior when allowOverride was set to false.

Fixed by ensuring allowOverride is properly copied in the copy method.

Related issue: N/A

Description

The copy method in Material was missing the allowOverride property that is defined in the constructor. When cloning a Material instance, this property was not copied to the new material, causing incorrect behavior when allowOverride was set to false.

The copy method in Material was missing the allowOverride property that is defined in the constructor. When cloning a Material instance, this property was not copied to the new material, causing incorrect behavior when allowOverride was set to false.

Fixed by ensuring allowOverride is properly copied in the copy method.
@github-actions
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 356.24
86.48
356.24
86.48
+0 B
+0 B
WebGPU 615.49
172.75
615.49
172.75
+0 B
+0 B
WebGPU Nodes 614.1
172.5
614.1
172.5
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 488.04
121.25
488.07
121.25
+35 B
+5 B
WebGPU 684.96
188.02
685
188.03
+35 B
+6 B
WebGPU Nodes 626.68
171.22
626.72
171.23
+35 B
+6 B

set needsUpdate(value) {

if ( value === true ) this.version ++;
if (value === true) this.version++;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please do not change the formatting of the file.

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