Skip to content

Commit

Permalink
Update mesh_loader.cpp
Browse files Browse the repository at this point in the history
fs::extension error
  • Loading branch information
akazxd authored Dec 11, 2024
1 parent fdcf656 commit 9fd6571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rviz/mesh_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ void loadTexture(const std::string& resource_path)
{
Ogre::DataStreamPtr stream(new Ogre::MemoryDataStream(res.data.get(), res.size));
Ogre::Image image;
std::string extension = fs::extension(fs::path(resource_path));
std::string extension = fs::path(resource_path).extension().string();

if (extension[0] == '.')
{
Expand Down

0 comments on commit 9fd6571

Please sign in to comment.