mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
namechange: fetchResource --> getGeometryResource
This commit is contained in:
parent
c50d41c532
commit
4bebb682dc
3 changed files with 4 additions and 4 deletions
|
@ -250,7 +250,7 @@ QSharedPointer<Resource> ModelCache::createResource(const QUrl& url, const QShar
|
|||
return QSharedPointer<Resource>(resource, &Resource::deleter);
|
||||
}
|
||||
|
||||
GeometryResource::Pointer ModelCache::fetchResource(const QUrl& url, const QVariantHash& mapping, const QUrl& textureBaseUrl) {
|
||||
GeometryResource::Pointer ModelCache::getGeometryResource(const QUrl& url, const QVariantHash& mapping, const QUrl& textureBaseUrl) {
|
||||
GeometryExtra geometryExtra = { mapping, textureBaseUrl };
|
||||
GeometryResource::Pointer resource = getResource(url, QUrl(), &geometryExtra).staticCast<GeometryResource>();
|
||||
if (resource) {
|
||||
|
|
|
@ -127,7 +127,7 @@ class ModelCache : public ResourceCache, public Dependency {
|
|||
SINGLETON_DEPENDENCY
|
||||
|
||||
public:
|
||||
GeometryResource::Pointer fetchResource(const QUrl& url,
|
||||
GeometryResource::Pointer getGeometryResource(const QUrl& url,
|
||||
const QVariantHash& mapping = QVariantHash(), const QUrl& textureBaseUrl = QUrl());
|
||||
|
||||
protected:
|
||||
|
|
|
@ -821,7 +821,7 @@ void Model::setURL(const QUrl& url) {
|
|||
invalidCalculatedMeshBoxes();
|
||||
deleteGeometry();
|
||||
|
||||
_renderWatcher.setResource(DependencyManager::get<ModelCache>()->fetchResource(url));
|
||||
_renderWatcher.setResource(DependencyManager::get<ModelCache>()->getGeometryResource(url));
|
||||
onInvalidate();
|
||||
}
|
||||
|
||||
|
@ -830,7 +830,7 @@ void Model::setCollisionModelURL(const QUrl& url) {
|
|||
return;
|
||||
}
|
||||
_collisionUrl = url;
|
||||
_collisionWatcher.setResource(DependencyManager::get<ModelCache>()->fetchResource(url));
|
||||
_collisionWatcher.setResource(DependencyManager::get<ModelCache>()->getGeometryResource(url));
|
||||
}
|
||||
|
||||
bool Model::getJointPositionInWorldFrame(int jointIndex, glm::vec3& position) const {
|
||||
|
|
Loading…
Reference in a new issue