Merge pull request #14023 from dback2/selectEntityEveryFrameFix

Only call selectEntity once triggered when using edit handles
This commit is contained in:
John Conklin II 2018-09-28 16:38:10 -07:00 committed by GitHub
commit 130e8dfbe9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,8 +73,7 @@ Script.include("/~/system/libraries/utils.js");
method: "clearSelection",
hand: hand
}));
}
}
} else {
if (this.selectedTarget.type === Picks.INTERSECTED_ENTITY) {
Messages.sendLocalMessage("entityToolUpdates", JSON.stringify({
method: "selectEntity",
@ -88,6 +87,8 @@ Script.include("/~/system/libraries/utils.js");
hand: hand
}));
}
}
}
this.triggerClicked = true;
}