Merge pull request #10 from druiz17/fix-parent-grab

fix cloning equiping
This commit is contained in:
Seth Alves 2017-09-26 10:46:11 -07:00 committed by GitHub
commit 24e7ad69ed

View file

@ -499,6 +499,7 @@ EquipHotspotBuddy.prototype.update = function(deltaTime, timestamp, controllerDa
var cloneID = this.cloneHotspot(grabbedProperties, controllerData);
this.targetEntityID = cloneID;
Entities.editEntity(this.targetEntityID, reparentProps);
controllerData.nearbyEntityPropertiesByID[this.targetEntityID] = grabbedProperties;
isClone = true;
} else if (!grabbedProperties.locked) {
Entities.editEntity(this.targetEntityID, reparentProps);