Skip to content

Commit

Permalink
refactor(Feature2Mesh): fix setColor for instancedMesh
Browse files Browse the repository at this point in the history
  • Loading branch information
ftoromanoff committed Jan 15, 2024
1 parent fb2fa6b commit ff5e253
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Converter/Feature2Mesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ function setColorOfExtrudedPolygon(mesh) {
function setColor(meshes) {
if (!Array.isArray(meshes)) { meshes = [meshes]; }
meshes.forEach((mesh) => {
if (mesh.isInstancedMesh) { return; }
switch (mesh.feature.type) {
case FEATURE_TYPES.POINT:
setColorofPoint(mesh);
Expand Down

0 comments on commit ff5e253

Please sign in to comment.