mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:43:49 +02:00
image entities shown as images in entity list
This commit is contained in:
parent
9f8e2017ce
commit
cc4bafb46f
2 changed files with 4 additions and 1 deletions
|
@ -142,7 +142,6 @@ Windows.ScrollingWindow {
|
|||
});
|
||||
}
|
||||
|
||||
// Elisa note - need to link this with specific add entity call
|
||||
function canAddToWorld(path) {
|
||||
var supportedExtensions = [/\.fbx\b/i, /\.obj\b/i, /\.jpg\b/i, /\.png\b/i];
|
||||
|
||||
|
|
|
@ -156,6 +156,10 @@ function loaded() {
|
|||
var urlParts = url.split('/');
|
||||
var filename = urlParts[urlParts.length - 1];
|
||||
|
||||
if (url === "https://hifi-content.s3.amazonaws.com/elisalj/image_entity/snapshot.fbx") {
|
||||
type = "Image";
|
||||
}
|
||||
|
||||
if (entities[id] === undefined) {
|
||||
entityList.add([{
|
||||
id: id, name: name, type: type, url: filename, locked: locked, visible: visible,
|
||||
|
|
Loading…
Reference in a new issue