mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Merge pull request #10 from druiz17/fix-parent-grab
fix cloning equiping
This commit is contained in:
commit
24e7ad69ed
1 changed files with 1 additions and 0 deletions
|
@ -499,6 +499,7 @@ EquipHotspotBuddy.prototype.update = function(deltaTime, timestamp, controllerDa
|
||||||
var cloneID = this.cloneHotspot(grabbedProperties, controllerData);
|
var cloneID = this.cloneHotspot(grabbedProperties, controllerData);
|
||||||
this.targetEntityID = cloneID;
|
this.targetEntityID = cloneID;
|
||||||
Entities.editEntity(this.targetEntityID, reparentProps);
|
Entities.editEntity(this.targetEntityID, reparentProps);
|
||||||
|
controllerData.nearbyEntityPropertiesByID[this.targetEntityID] = grabbedProperties;
|
||||||
isClone = true;
|
isClone = true;
|
||||||
} else if (!grabbedProperties.locked) {
|
} else if (!grabbedProperties.locked) {
|
||||||
Entities.editEntity(this.targetEntityID, reparentProps);
|
Entities.editEntity(this.targetEntityID, reparentProps);
|
||||||
|
|
Loading…
Reference in a new issue