mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 15:59:49 +02:00
remove urlAsString from Model
This commit is contained in:
parent
3fbf31eb6e
commit
8ee27bca2b
3 changed files with 1 additions and 6 deletions
|
@ -227,7 +227,7 @@ void RenderableModelEntityItem::render(RenderArgs* args) {
|
||||||
|
|
||||||
if (hasModel()) {
|
if (hasModel()) {
|
||||||
if (_model) {
|
if (_model) {
|
||||||
if (getModelURL() != _model->getURLAsString()) {
|
if (getModelURL() != _model->getURL().toString()) {
|
||||||
qDebug() << "Updating model URL: " << getModelURL();
|
qDebug() << "Updating model URL: " << getModelURL();
|
||||||
_model->setURL(getModelURL());
|
_model->setURL(getModelURL());
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,7 +70,6 @@ Model::Model(RigPointer rig, QObject* parent) :
|
||||||
_cauterizeBones(false),
|
_cauterizeBones(false),
|
||||||
_pupilDilation(0.0f),
|
_pupilDilation(0.0f),
|
||||||
_url(HTTP_INVALID_COM),
|
_url(HTTP_INVALID_COM),
|
||||||
_urlAsString(HTTP_INVALID_COM),
|
|
||||||
_isVisible(true),
|
_isVisible(true),
|
||||||
_blendNumber(0),
|
_blendNumber(0),
|
||||||
_appliedBlendNumber(0),
|
_appliedBlendNumber(0),
|
||||||
|
@ -1028,14 +1027,12 @@ int Model::getLastFreeJointIndex(int jointIndex) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Model::setURL(const QUrl& url) {
|
void Model::setURL(const QUrl& url) {
|
||||||
|
|
||||||
// don't recreate the geometry if it's the same URL
|
// don't recreate the geometry if it's the same URL
|
||||||
if (_url == url && _geometry && _geometry->getURL() == url) {
|
if (_url == url && _geometry && _geometry->getURL() == url) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_url = url;
|
_url = url;
|
||||||
_urlAsString = _url.toString();
|
|
||||||
|
|
||||||
{
|
{
|
||||||
render::PendingChanges pendingChanges;
|
render::PendingChanges pendingChanges;
|
||||||
|
|
|
@ -70,7 +70,6 @@ public:
|
||||||
/// Sets the URL of the model to render.
|
/// Sets the URL of the model to render.
|
||||||
Q_INVOKABLE void setURL(const QUrl& url);
|
Q_INVOKABLE void setURL(const QUrl& url);
|
||||||
const QUrl& getURL() const { return _url; }
|
const QUrl& getURL() const { return _url; }
|
||||||
const QString& getURLAsString() const { return _urlAsString; }
|
|
||||||
|
|
||||||
// new Scene/Engine rendering support
|
// new Scene/Engine rendering support
|
||||||
void setVisibleInScene(bool newValue, std::shared_ptr<render::Scene> scene);
|
void setVisibleInScene(bool newValue, std::shared_ptr<render::Scene> scene);
|
||||||
|
@ -314,7 +313,6 @@ private:
|
||||||
QVector<float> _blendshapeCoefficients;
|
QVector<float> _blendshapeCoefficients;
|
||||||
|
|
||||||
QUrl _url;
|
QUrl _url;
|
||||||
QString _urlAsString;
|
|
||||||
QUrl _collisionUrl;
|
QUrl _collisionUrl;
|
||||||
bool _isVisible;
|
bool _isVisible;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue