mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:29:03 +02:00
Implement addToWorld in asset window
This commit is contained in:
parent
b42bec78dc
commit
0df05d273d
1 changed files with 4 additions and 2 deletions
|
@ -101,10 +101,12 @@ Window {
|
||||||
Assets.mappingModel.refresh();
|
Assets.mappingModel.refresh();
|
||||||
}
|
}
|
||||||
function addToWorld() {
|
function addToWorld() {
|
||||||
var path = assetMappingsModel.data(treeView.currentIndex, 0x100);
|
var url = assetMappingsModel.data(treeView.currentIndex, 0x102);
|
||||||
if (!path) {
|
if (!url) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Entities.addModelEntity(url, MyAvatar.position);
|
||||||
}
|
}
|
||||||
|
|
||||||
function copyURLToClipboard() {
|
function copyURLToClipboard() {
|
||||||
|
|
Loading…
Reference in a new issue