LineMaterial: Set needsupdate when changing worldUnits property#32952
LineMaterial: Set needsupdate when changing worldUnits property#32952Mugen87 merged 2 commits intomrdoob:devfrom
Conversation
|
|
||
| this.needsUpdate = true; | ||
|
|
||
| } |
There was a problem hiding this comment.
If you want to add this, please remove below lines from the examples:
three.js/examples/webgl_lines_fat.html
Line 231 in 04961be
|
I will add, it took me a bit to parse the |
|
@WestLangley I just think it makes sense to align the |
|
@Mugen87 I agree with that. I had questions about the coding patterns introduced in the earlier PR. I was hoping you would comment on my concerns. |
|
It's a bit of a subjective matter but imo #26720 made the readability in the file worse. However, if we want to use getters/setters in |
Related issue: n/a
Description
I think that it can be confusing that changing
worldUnitsdoesn't affect anything in the rendering. The other propertiesdashedandalphaToCoveragesetneedsUpdatewhen they change