mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 19:34:02 +02:00
Merge pull request #7766 from ZappoMan/fixAutoResize
fix auto resize of models on import
This commit is contained in:
commit
f6aa0a11a8
1 changed files with 1 additions and 0 deletions
|
@ -518,6 +518,7 @@ void RenderableModelEntityItem::update(const quint64& now) {
|
|||
if (!_dimensionsInitialized && _model && _model->isActive()) {
|
||||
if (_model->isLoaded()) {
|
||||
EntityItemProperties properties;
|
||||
properties.setLastEdited(usecTimestampNow()); // we must set the edit time since we're editing it
|
||||
auto extents = _model->getMeshExtents();
|
||||
properties.setDimensions(extents.maximum - extents.minimum);
|
||||
qCDebug(entitiesrenderer) << "Autoresizing:" << (!getName().isEmpty() ? getName() : getModelURL());
|
||||
|
|
Loading…
Reference in a new issue