mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 07:13:10 +02:00
ensure target mouse entity has equip data
This commit is contained in:
parent
9e4914975b
commit
278a6b763f
1 changed files with 2 additions and 1 deletions
|
@ -796,7 +796,8 @@ EquipHotspotBuddy.prototype.update = function(deltaTime, timestamp, controllerDa
|
|||
var intersection = Entities.findRayIntersection(pickRay, true);
|
||||
if (intersection.intersects) {
|
||||
var entityProperties = Entities.getEntityProperties(intersection.entityID, DISPATCHER_PROPERTIES);
|
||||
if (entityProperties.parentID === EMPTY_PARENT_ID) {
|
||||
var hasEquipData = getWearableData(entityProperties).joints || getEquipHotspotsData(entityProperties).length > 0;
|
||||
if (hasEquipData && entityProperties.parentID === EMPTY_PARENT_ID) {
|
||||
entityProperties.id = intersection.entityID;
|
||||
var rightHandPosition = MyAvatar.getJointPosition("RightHand");
|
||||
var leftHandPosition = MyAvatar.getJointPosition("LeftHand");
|
||||
|
|
Loading…
Reference in a new issue