mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:43:49 +02:00
Merge pull request #5493 from thoys/fix-model-overlay-rig-crash
Fix crash for ModelOverlays, caused by Rig changes
This commit is contained in:
commit
597316b208
1 changed files with 3 additions and 2 deletions
|
@ -10,6 +10,7 @@
|
|||
//
|
||||
|
||||
#include "ModelOverlay.h"
|
||||
#include "EntityRig.h"
|
||||
|
||||
#include "Application.h"
|
||||
|
||||
|
@ -17,7 +18,7 @@
|
|||
QString const ModelOverlay::TYPE = "model";
|
||||
|
||||
ModelOverlay::ModelOverlay()
|
||||
: _model(nullptr),
|
||||
: _model(std::make_shared<EntityRig>()),
|
||||
_modelTextures(QVariantMap()),
|
||||
_updateModel(false)
|
||||
{
|
||||
|
@ -27,7 +28,7 @@ ModelOverlay::ModelOverlay()
|
|||
|
||||
ModelOverlay::ModelOverlay(const ModelOverlay* modelOverlay) :
|
||||
Volume3DOverlay(modelOverlay),
|
||||
_model(nullptr),
|
||||
_model(std::make_shared<EntityRig>()),
|
||||
_modelTextures(QVariantMap()),
|
||||
_url(modelOverlay->_url),
|
||||
_updateModel(false)
|
||||
|
|
Loading…
Reference in a new issue