mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 06:45:35 +00:00
Use dynamic cast to check for bone
This commit is contained in:
parent
36cccef606
commit
d23c10622d
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ namespace Resource
|
|||
{
|
||||
// If an osgAnimation bone/transform, ensure underscores in name are replaced with spaces
|
||||
// this is for compatibility reasons
|
||||
if (node.libraryName() == std::string_view("osgAnimation") && node.className() == std::string_view("Bone"))
|
||||
if (dynamic_cast<osgAnimation::Bone*>(&node))
|
||||
node.setName(Misc::StringUtils::underscoresToSpaces(node.getName()));
|
||||
|
||||
if (osg::StateSet* stateset = node.getStateSet())
|
||||
|
|
Loading…
Reference in a new issue