| 213 | } |
| 214 | |
| 215 | void Animation3DCache::addAnimation(std::string_view key, Animation3D* animation) |
| 216 | { |
| 217 | const auto& it = _animations.find(key); |
| 218 | if (it != _animations.end()) |
| 219 | { |
| 220 | return; // already have this key |
| 221 | } |
| 222 | _animations.emplace(key, animation); //_animations[key] = animation; |
| 223 | animation->retain(); |
| 224 | } |
| 225 | |
| 226 | void Animation3DCache::removeAllAnimations() |
| 227 | { |