Skip to content

Commit 523b01b

Browse files
mjcarrollazeeyiche033
authored
Fix ResourceSpawner (#2490)
* Use new ModelIdentifier::Url method --------- Signed-off-by: Michael Carroll <[email protected]> Co-authored-by: Addisu Z. Taddese <[email protected]> Co-authored-by: Ian Chen <[email protected]>
1 parent fab620a commit 523b01b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/plugins/resource_spawner/ResourceSpawner.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ void ResourceSpawner::OnDownloadFuelResource(const QString &_path,
553553
// Set the waiting cursor while the resource downloads
554554
QGuiApplication::setOverrideCursor(Qt::WaitCursor);
555555
if (this->dataPtr->fuelClient->DownloadModel(
556-
common::URI(_path.toStdString()), localPath))
556+
common::URI(_path.toStdString(), true), localPath))
557557
{
558558
// Successful download, set thumbnail
559559
std::string thumbnailPath = common::joinPaths(localPath, "thumbnails");
@@ -739,7 +739,7 @@ void ResourceSpawner::RunFetchResourceListThread(const std::string &_owner)
739739
resource.isFuel = true;
740740
resource.isDownloaded = false;
741741
resource.owner = id.Owner();
742-
resource.sdfPath = id.UniqueName();
742+
resource.sdfPath = id.Url().Str();
743743

744744
QMetaObject::invokeMethod(
745745
this, "UpdateOwnerListModel", Qt::QueuedConnection,

0 commit comments

Comments
 (0)