Revert move of default anim rename

pull/3236/head
Sam Hellawell 6 months ago
parent 03413a895f
commit 56a40577ed

@ -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);

@ -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)
{

Loading…
Cancel
Save