Skip to content

Commit

Permalink
fix(3dtile): avoid to clone overrideMaterials to each each assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed Sep 27, 2019
1 parent b6e5756 commit 968643b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser/B3dmParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export default {
}
if (typeof (options.overrideMaterials) === 'object' &&
options.overrideMaterials.isMaterial) {
mesh.material = options.overrideMaterials.clone();
mesh.material = options.overrideMaterials;
} else {
mesh.material = new THREE.MeshLambertMaterial({ color: 0xffffff });
}
Expand Down

0 comments on commit 968643b

Please sign in to comment.