making requested changes

This commit is contained in:
Dante Ruiz 2018-04-11 14:42:26 -07:00
parent ba9d5d18bc
commit 7243160dac
2 changed files with 6 additions and 6 deletions

View file

@ -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) {

View file

@ -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;