Skip to content

Commit 9b11fe9

Browse files
committed
pass buttons to selection object
1 parent 6111ef7 commit 9b11fe9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scene.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ function createScene(options) {
368368
}
369369
var objPick = obj.pick(result)
370370
if(objPick) {
371+
selection.buttons = buttons
371372
selection.screen = result.coord
372373
selection.distance = result.distance
373374
selection.object = obj
@@ -381,6 +382,7 @@ function createScene(options) {
381382
}
382383
}
383384
}
385+
384386
if(prevObj && prevObj !== selection.object) {
385387
if(prevObj.highlight) {
386388
prevObj.highlight(null)

0 commit comments

Comments
 (0)