mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-14 11:06:45 +00:00
Revert move of default anim rename
This commit is contained in:
parent
03413a895f
commit
56a40577ed
2 changed files with 6 additions and 4 deletions
|
@ -86,6 +86,12 @@ namespace Resource
|
||||||
{
|
{
|
||||||
if (animation)
|
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;
|
osg::ref_ptr<Resource::Animation> mergedAnimationTrack = new Resource::Animation;
|
||||||
const std::string animationName = animation->getName();
|
const std::string animationName = animation->getName();
|
||||||
mergedAnimationTrack->setName(animationName);
|
mergedAnimationTrack->setName(animationName);
|
||||||
|
|
|
@ -437,10 +437,6 @@ namespace Resource
|
||||||
{
|
{
|
||||||
if (animation)
|
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();
|
auto& channels = animation->getChannels();
|
||||||
for (auto& channel : channels)
|
for (auto& channel : channels)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue