mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 23:33:26 +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();
|
||||
}
|
||||
function addToWorld() {
|
||||
var path = assetMappingsModel.data(treeView.currentIndex, 0x100);
|
||||
if (!path) {
|
||||
var url = assetMappingsModel.data(treeView.currentIndex, 0x102);
|
||||
if (!url) {
|
||||
return;
|
||||
}
|
||||
|
||||
Entities.addModelEntity(url, MyAvatar.position);
|
||||
}
|
||||
|
||||
function copyURLToClipboard() {
|
||||
|
|
Loading…
Reference in a new issue