mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 10:24:01 +02:00
Merge pull request #12403 from 1P-Cusack/EntityPropertiesJS_801_on_split
[EntityPropertiesJS] Fix for 801 Uncaught TypeError (details below).
This commit is contained in:
commit
09645c8b48
1 changed files with 7 additions and 4 deletions
|
@ -798,10 +798,13 @@ function loaded() {
|
||||||
|
|
||||||
// HTML workaround since image is not yet a separate entity type
|
// HTML workaround since image is not yet a separate entity type
|
||||||
var IMAGE_MODEL_NAME = 'default-image-model.fbx';
|
var IMAGE_MODEL_NAME = 'default-image-model.fbx';
|
||||||
var urlParts = properties.modelURL.split('/')
|
if (properties.type === "Model") {
|
||||||
var propsFilename = urlParts[urlParts.length - 1];
|
var urlParts = properties.modelURL.split('/');
|
||||||
if (properties.type === "Model" && propsFilename === IMAGE_MODEL_NAME) {
|
var propsFilename = urlParts[urlParts.length - 1];
|
||||||
properties.type = "Image";
|
|
||||||
|
if (propsFilename === IMAGE_MODEL_NAME) {
|
||||||
|
properties.type = "Image";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create class name for css ruleset filtering
|
// Create class name for css ruleset filtering
|
||||||
|
|
Loading…
Reference in a new issue