mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 16:26:17 +02:00
don't try to grab polylines. set wantTrigger on various whiteboard parts
This commit is contained in:
parent
f83c0e7db7
commit
c4194f2359
2 changed files with 12 additions and 4 deletions
|
@ -455,6 +455,10 @@ function MyController(hand) {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (propsForCandidate.type == 'PolyLine') {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (propsForCandidate.type == 'Zone') {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -75,8 +75,8 @@ var drawingSurface = Entities.addEntity({
|
|||
color: {
|
||||
currentColor: colors[0]
|
||||
},
|
||||
"grabbableKey": {
|
||||
wantsTrigger:true
|
||||
grabbableKey: {
|
||||
wantsTrigger: true
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -156,7 +156,10 @@ function setUp() {
|
|||
color: {
|
||||
currentColor: colors[0]
|
||||
},
|
||||
colorIndicator: colorIndicatorBox
|
||||
colorIndicator: colorIndicatorBox,
|
||||
grabbableKey: {
|
||||
wantsTrigger: true
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
|
@ -189,7 +192,8 @@ function setUp() {
|
|||
script: scriptURL,
|
||||
userData: JSON.stringify({
|
||||
whiteboard: drawingSurface,
|
||||
colorIndicator: colorIndicatorBox
|
||||
colorIndicator: colorIndicatorBox,
|
||||
grabbableKey: {wantsTrigger: true}
|
||||
})
|
||||
});
|
||||
colorBoxes.push(colorBox);
|
||||
|
|
Loading…
Reference in a new issue