Merge pull request #12720 from druiz17/fix-parent-tree

Fix far grabbing a grabbable child when the parent is not grabbable.
This commit is contained in:
John Conklin II 2018-03-30 12:25:22 -07:00 committed by GitHub
commit 542d1ad1ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -475,7 +475,7 @@ Script.include("/~/system/libraries/Xform.js");
entityID = targetEntity.id;
targetProps = targetEntity.props;
if (entityIsGrabbable(targetProps)) {
if (entityIsGrabbable(targetProps) || entityIsGrabbable(this.targetObject.entityProps)) {
if (!entityIsDistanceGrabbable(targetProps)) {
this.targetObject.makeDynamic();
}