mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
making requested changes
This commit is contained in:
parent
ba9d5d18bc
commit
7243160dac
2 changed files with 6 additions and 6 deletions
|
@ -44,16 +44,16 @@
|
|||
|
||||
|
||||
this.isGrabable = function(controllerData, props) {
|
||||
var entityIsGrabable = false;
|
||||
var canGrabEntity = false;
|
||||
if (dispatcherUtils.entityIsGrabbable(props) || entityIsCloneable(props)) {
|
||||
// if we've attempted to grab a child, roll up to the root of the tree
|
||||
var groupRootProps = dispatcherUtils.findGroupParent(controllerData, props);
|
||||
entityIsGrabable = true;
|
||||
canGrabEntity = true;
|
||||
if (!dispatcherUtils.entityIsGrabbable(groupRootProps)) {
|
||||
entityIsGrabable = false;
|
||||
canGrabEntity = false;
|
||||
}
|
||||
}
|
||||
return entityIsGrabable;
|
||||
return canGrabEntity;
|
||||
};
|
||||
|
||||
this.hasHyperLink = function(props) {
|
||||
|
|
|
@ -29,9 +29,9 @@
|
|||
|
||||
this.isReady = function(controllerData) {
|
||||
if (HMD.active) {
|
||||
print("????");
|
||||
if (this.highlightedEntity) {
|
||||
// unhighlight entity
|
||||
dispatcherUtils.unhighlightTargetEntity(this.highlightedEntity);
|
||||
this.highlightedEntity = null;
|
||||
}
|
||||
} else {
|
||||
var pickResult = controllerData.mouseRayPick;
|
||||
|
|
Loading…
Reference in a new issue