Skip to content

Commit d8cf11e

Browse files
MaterialLoader: Simplified bool check. (mrdoob#33066)
1 parent b86ec64 commit d8cf11e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/loaders/MaterialLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class MaterialLoader extends Loader {
215215

216216
if ( typeof json.vertexColors === 'number' ) {
217217

218-
material.vertexColors = ( json.vertexColors > 0 ) ? true : false;
218+
material.vertexColors = json.vertexColors > 0;
219219

220220
} else {
221221

0 commit comments

Comments
 (0)