mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 17:55:36 +02:00
cleaner handling for QString/QUrl conversion/comparison
This commit is contained in:
parent
6339c2c48f
commit
0e19e50047
2 changed files with 8 additions and 3 deletions
|
@ -219,9 +219,13 @@ void RenderableModelEntityItem::render(RenderArgs* args) {
|
|||
|
||||
if (hasModel()) {
|
||||
if (_model) {
|
||||
if (getModelURL() != _model->getURL().toEncoded()) {
|
||||
qDebug() << "Updating model URL: " << getModelURL();
|
||||
_model->setURL(getModelURL());
|
||||
// convert the QString from getModelURL to a URL
|
||||
_url = getModelURL();
|
||||
|
||||
// check if the URL has changed
|
||||
if (_url != _model->getURL()) {
|
||||
qDebug() << "Updating model URL: " << _url;
|
||||
_model->setURL(_url);
|
||||
}
|
||||
|
||||
render::ScenePointer scene = AbstractViewStateInterface::instance()->getMain3DScene();
|
||||
|
|
|
@ -79,6 +79,7 @@ private:
|
|||
bool _originalTexturesRead = false;
|
||||
QVector<QVector<glm::vec3>> _points;
|
||||
bool _dimensionsInitialized = true;
|
||||
QUrl _url;
|
||||
|
||||
render::ItemID _myMetaItem;
|
||||
|
||||
|
|
Loading…
Reference in a new issue