mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Merge pull request #5397 from huffman/fix-model-entity-list
Fix model entity not showing up in list on creation
This commit is contained in:
commit
0ec5dea532
1 changed files with 6 additions and 2 deletions
|
@ -318,11 +318,15 @@ var toolBar = (function () {
|
||||||
print("Resize failed: timed out waiting for model (" + url + ") to load");
|
print("Resize failed: timed out waiting for model (" + url + ") to load");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
entityProperties.dimensions = naturalDimensions;
|
Entities.editEntity(entityId, { dimensions: naturalDimensions });
|
||||||
Entities.editEntity(entityId, entityProperties);
|
|
||||||
|
// Reset selection so that the selection overlays will be updated
|
||||||
|
selectionManager.setSelections([entityId]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
selectionManager.setSelections([entityId]);
|
||||||
|
|
||||||
Script.setTimeout(resize, RESIZE_INTERVAL);
|
Script.setTimeout(resize, RESIZE_INTERVAL);
|
||||||
} else {
|
} else {
|
||||||
print("Can't add model: Model would be out of bounds.");
|
print("Can't add model: Model would be out of bounds.");
|
||||||
|
|
Loading…
Reference in a new issue