Skip to content

Commit

Permalink
Fix SceneModel parameter check
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Oct 26, 2023
1 parent 2e555c1 commit ec1b6a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viewer/scene/model/SceneModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2245,7 +2245,7 @@ export class SceneModel extends Component {
cfg.primitive = "triangles";
}
if (cfg.primitive !== "points" && cfg.primitive !== "lines" && cfg.primitive !== "triangles" && cfg.primitive !== "solid" && cfg.primitive !== "surface") {
this.error(`[createGeometry] Unsupported value for 'primitive': '${primitive}' - supported values are 'points', 'lines', 'triangles', 'solid' and 'surface'. Defaulting to 'triangles'.`);
this.error(`[createGeometry] Unsupported value for 'primitive': '${cfg.primitive}' - supported values are 'points', 'lines', 'triangles', 'solid' and 'surface'. Defaulting to 'triangles'.`);
return;
}
if (!cfg.positions && !cfg.positionsCompressed && !cfg.buckets) {
Expand Down

0 comments on commit ec1b6a5

Please sign in to comment.