| 188 | } |
| 189 | |
| 190 | int ModelDef::getAnimationIndexByName(String name) { |
| 191 | auto it = _animationIndex.find(name); |
| 192 | if (it != _animationIndex.end()) { |
| 193 | return it->second; |
| 194 | } |
| 195 | return Animation::None; |
| 196 | } |
| 197 | |
| 198 | const std::string& ModelDef::getAnimationNameByIndex(int index) { |
| 199 | for (const auto& item : _animationIndex) { |