Skip to content

Commit 33e2b9a

Browse files
committed
if no indices then trace visible to false
1 parent 12f3e1f commit 33e2b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/mesh3d/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
3636
var coords = readComponents(['x', 'y', 'z']);
3737
var indices = readComponents(['i', 'j', 'k']);
3838

39-
if(!coords) {
39+
if(!coords || !indices) {
4040
traceOut.visible = false;
4141
return;
4242
}

0 commit comments

Comments
 (0)