1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-06 06:15:32 +00:00

Revert move of default anim rename

This commit is contained in:
Sam Hellawell 2024-07-14 02:38:57 +01:00
parent 03413a895f
commit 56a40577ed
2 changed files with 6 additions and 4 deletions

View file

@ -86,6 +86,12 @@ namespace Resource
{
if (animation)
{
//"Default" is osg dae plugin's default naming scheme for unnamed animations
if (animation->getName() == "Default")
{
animation->setName(std::string("idle"));
}
osg::ref_ptr<Resource::Animation> mergedAnimationTrack = new Resource::Animation;
const std::string animationName = animation->getName();
mergedAnimationTrack->setName(animationName);

View file

@ -437,10 +437,6 @@ namespace Resource
{
if (animation)
{
// "Default" is osg dae plugin's default naming scheme for unnamed animations
if (animation->getName() == "Default")
animation->setName(std::string("idle"));
auto& channels = animation->getChannels();
for (auto& channel : channels)
{