Support for "Rotate as the Next Clicked Surface"

Support for "Rotate as the Next Clicked Surface"
Add "surfaceNormal" in the returned data.
This commit is contained in:
Alezia Kurdis 2020-12-24 22:55:09 -05:00 committed by GitHub
parent bc3cf98444
commit 1ce338d972
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,9 @@
// inEditMode.js
//
// Copyright 2014 High Fidelity, Inc.
// Copyright 2020 Vircadia contributors.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
@ -80,7 +83,8 @@ Script.include("/~/system/libraries/utils.js");
Messages.sendLocalMessage(this.ENTITY_TOOL_UPDATES_CHANNEL, JSON.stringify({
method: "selectEntity",
entityID: this.selectedTarget.objectID,
hand: hand
hand: hand,
surfaceNormal: this.selectedTarget.surfaceNormal
}));
} else if (this.selectedTarget.type === Picks.INTERSECTED_OVERLAY) {
Messages.sendLocalMessage(this.ENTITY_TOOL_UPDATES_CHANNEL, JSON.stringify({