| 715 | } |
| 716 | |
| 717 | std::vector<String> Layer::getAnimationKeys() const { |
| 718 | std::vector<String> out; |
| 719 | |
| 720 | auto animations = _animations.readAccess(); |
| 721 | out.reserve(animations->size()); |
| 722 | |
| 723 | for (const auto& it : animations) { |
| 724 | out.emplace_back(it.first); |
| 725 | } |
| 726 | |
| 727 | return out; |
| 728 | } |
| 729 | |
| 730 | bool Layer::needsProcessAnimations() const { |
| 731 | return _enqueuedFrame.has_value(); |