mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
allow stylus to work when edit.js is running
This commit is contained in:
parent
613a88925d
commit
f2ff6fd9e7
1 changed files with 3 additions and 1 deletions
|
@ -848,7 +848,9 @@ function MyController(hand) {
|
|||
};
|
||||
|
||||
this.setState = function(newState, reason) {
|
||||
if (isInEditMode() && newState !== STATE_OFF && newState !== STATE_SEARCHING) {
|
||||
if (isInEditMode() && (newState !== STATE_OFF &&
|
||||
newState !== STATE_SEARCHING &&
|
||||
newState !== STATE_OVERLAY_STYLUS_TOUCHING)) {
|
||||
return;
|
||||
}
|
||||
setGrabCommunications((newState === STATE_DISTANCE_HOLDING) || (newState === STATE_NEAR_GRABBING));
|
||||
|
|
Loading…
Reference in a new issue