Fix raycaster overriding line default color#4743
Conversation
|
For now, I just changed the source-code. If this is accepted, I guess I should update |
|
Using |
I agree with you. In that case, it should be possible to change the "laser" opacity (without depending on
Yes it does. It's juste that the "Customizing the Line" on laser-controls and "Customizing the Line" on raycaster on the documentation are not working. |
|
What about modifying this PR to add a |
I don't see any update on the docs yet. I can edit them if you want. Should I push update to the |
|
Thanks. Can you edit the docs as part of this PR? The new Don't push changes on the |
|
Thanks for remembering the tests. Merci, bien fait! Congrats on your first contribution! 🥳 |
Description:
When creating a
raycaster(or alaser-controlsfor ease of testing), it assigns a default value to theline's color.It means that the example doesn't works:
My fix keep the
raycaster'slineColorproperty for backward compatibility. But in my opinion, it should be deprecated in favor ofline'scolorproperty.Changes proposed:
raycaster'slineColorproperty.Reproduction
The opacity is working but not the color.