mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 09:48:44 +02:00
adjusted code to PR comments
This commit is contained in:
parent
9a63fc94f0
commit
7e87cb38e1
1 changed files with 4 additions and 4 deletions
|
@ -343,13 +343,13 @@ var selectionDisplay = null; // for gridTool.js to ignore
|
||||||
Entities.editEntity(pastedEntityIDs[0], offsets);
|
Entities.editEntity(pastedEntityIDs[0], offsets);
|
||||||
}
|
}
|
||||||
|
|
||||||
var firstEntityProps = Entities.getEntityProperties(pastedEntityIDs[0], ["position"]);
|
var rezPosition = Entities.getEntityProperties(pastedEntityIDs[0], "position").position;
|
||||||
var rezzedPos = firstEntityProps.position;
|
|
||||||
|
|
||||||
Audio.playSound(REZZING_SOUND, {
|
Audio.playSound(REZZING_SOUND, {
|
||||||
volume: 1.0,
|
volume: 1.0,
|
||||||
position: rezzedPos
|
position: rezPosition,
|
||||||
})
|
localOnly: true
|
||||||
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Window.notifyEditError("Can't import entities: entities would be out of bounds.");
|
Window.notifyEditError("Can't import entities: entities would be out of bounds.");
|
||||||
|
|
Loading…
Reference in a new issue