Skip to content

Commit abfab95

Browse files
authored
Fix picking on empty uv coords
1 parent ddbbc8d commit abfab95

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
@@ -133,7 +133,7 @@ function getinfo(o) {
133133
faceNormal: [o.face.normal.x, o.face.normal.y, o.face.normal.z],
134134
faceIndex: o.faceIndex !== undefined && o.faceIndex !== null ? o.faceIndex : null,
135135
object: o.object.ipymodel,
136-
uv: [o.uv.x, o.uv.y] || [0, 0],
136+
uv: o.uv ? [o.uv.x, o.uv.y] : [0, 0],
137137
};
138138
}
139139
return {

0 commit comments

Comments
 (0)