-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Editor : Basic Material browser implementation #17556
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
Conversation
|
|
||
| for( var i = 0; i < materials.length; i ++ ) { | ||
|
|
||
| if ( materials[i].id === id ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some minor style issues in your code. I suggest you setup your editor in a way so it automatically respect the project's style guide (defined in mdcs).
You can then automatically fix such issues and produce outputs like:
if ( materials[ i ].id === id ) {
material = materials[ i ];
break;
}There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do it,
Will need some getting used to, to these linters :)
|
I think this is good enough. I'll clean things after merging 👌 |
|
Thanks! |
|
@sdinesh86 Also 3b9016b 294246b b8903a4 |
|
@mrdoob THANKS for the cleanup and update !!! I will keep a note of these things in next PR |
|
While testing the ES6 module code, I've encountered something I'm not sure about. It's possible to reproduce in
Is this a bug or am I doing something wrong? Besides, when using the dark mode CSS, it's really hard to recognize the active list element: The bottom list element is actually active^^. |
It is definitely a bug. We're probably not dispatching a signal when changing the material. |

(...) #17495
Cleaned up the code and now making specific PR for material browser