Skip to content

Commit f489e73

Browse files
committed
Fix Picker faceIndex 0 -> null bug
1 parent 839c370 commit f489e73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/controls/Picker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function getinfo(o) {
114114
faceVertices: verts,
115115
indices: o.indices || [],
116116
faceNormal: [o.face.normal.x, o.face.normal.y, o.face.normal.z],
117-
faceIndex: o.faceIndex || null,
117+
faceIndex: o.faceIndex !== undefined && o.faceIndex !== null ? o.faceIndex : null,
118118
object: o.object.ipymodel,
119119
uv: [o.uv.x, o.uv.y] || [0, 0],
120120
};

0 commit comments

Comments
 (0)