Skip to content

Commit

Permalink
Update robot_link.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 9fd6571 commit e1bd662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rviz/robot/robot_link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ Ogre::MaterialPtr RobotLink::getMaterialForLink(const urdf::LinkConstSharedPtr&
{
Ogre::DataStreamPtr stream(new Ogre::MemoryDataStream(res.data.get(), res.size));
Ogre::Image image;
std::string extension = fs::extension(fs::path(filename));
std::string extension = fs::path(filename).extension().string();

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

0 comments on commit e1bd662

Please sign in to comment.