Skip to content

Commit

Permalink
Comments based on review
Browse files Browse the repository at this point in the history
Signed-off-by: Gonzalo de Pedro <[email protected]>
  • Loading branch information
Gonzalo de Pedro committed Nov 9, 2020
1 parent 2311ada commit 4809c51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions graphics/src/ColladaExporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,9 @@ int ColladaExporterPrivate::ExportImages(

tinyxml2::XMLElement *initFromXml =
_libraryImagesXml->GetDocument()->NewElement("init_from");
initFromXml->LinkEndChild(_libraryImagesXml->GetDocument()->NewText(
("../materials/textures" + imageString.substr(
imageString.rfind("/"))).c_str()));
const auto imageName = imageString.substr(imageString.rfind("/"));
const auto imagePath = common::Join({"..", "materials", "textures", imageName}, "/");
initFromXml->LinkEndChild(_libraryImagesXml->GetDocument()->NewText(imagePath.c_str());
imageXml->LinkEndChild(initFromXml);

if (this->exportTextures)
Expand Down

0 comments on commit 4809c51

Please sign in to comment.