mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 23:12:16 +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
|
||||
var IMAGE_MODEL_NAME = 'default-image-model.fbx';
|
||||
var urlParts = properties.modelURL.split('/')
|
||||
var propsFilename = urlParts[urlParts.length - 1];
|
||||
if (properties.type === "Model" && propsFilename === IMAGE_MODEL_NAME) {
|
||||
properties.type = "Image";
|
||||
if (properties.type === "Model") {
|
||||
var urlParts = properties.modelURL.split('/');
|
||||
var propsFilename = urlParts[urlParts.length - 1];
|
||||
|
||||
if (propsFilename === IMAGE_MODEL_NAME) {
|
||||
properties.type = "Image";
|
||||
}
|
||||
}
|
||||
|
||||
// Create class name for css ruleset filtering
|
||||
|
|
Loading…
Reference in a new issue