Skip to content

Commit

Permalink
fix deprecated Ogre getAnimationStateIterator call
Browse files Browse the repository at this point in the history
  • Loading branch information
Altren committed Aug 6, 2023
1 parent 75d6538 commit 127963e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions UnitTests/UnitTest_GraphView/GraphNodeSkeletonState.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,9 @@ namespace demo
{
Ogre::Entity* entity = Ogre::any_cast<Ogre::Entity*>(any);
Ogre::AnimationStateSet* set = entity->getAllAnimationStates();
Ogre::AnimationStateIterator iter = set->getAnimationStateIterator();
while (iter.hasMoreElements())
for (const auto& state : set->getAnimationStates())
{
Ogre::AnimationState* state = iter.getNext();
mComboStates->addItem(state->getAnimationName());
mComboStates->addItem(state.second->getAnimationName());
}
}

Expand Down

0 comments on commit 127963e

Please sign in to comment.