From 9b1f9dd7126038ac0cb3dc1fbaf5316a44b4bc47 Mon Sep 17 00:00:00 2001 From: Tobias Fischer Date: Wed, 3 Nov 2021 12:39:07 +1000 Subject: [PATCH] Fix Windows compilation --- src/rviz/mesh_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rviz/mesh_loader.cpp b/src/rviz/mesh_loader.cpp index 18659169d1..06d3200ce0 100644 --- a/src/rviz/mesh_loader.cpp +++ b/src/rviz/mesh_loader.cpp @@ -768,7 +768,7 @@ Ogre::SkeletonPtr loadSkeletonFromResource(const std::string& resource_path) Ogre::SkeletonSerializer ser; Ogre::DataStreamPtr stream(new Ogre::MemoryDataStream(res.data.get(), res.size)); Ogre::SkeletonPtr skeleton = Ogre::SkeletonManager::getSingleton().create( - skeleton_path.filename().c_str(), Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, true); + skeleton_path.filename().string().c_str(), Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, true); ser.importSkeleton(stream, skeleton.get()); return skeleton;