| 79 | } |
| 80 | |
| 81 | void AnimatedPartSet::setStateTypeEnabled(String const& stateTypeName, bool enabled) { |
| 82 | auto& stateType = m_stateTypes.get(stateTypeName); |
| 83 | if (stateType.enabled != enabled) { |
| 84 | stateType.enabled = enabled; |
| 85 | for (auto& pair : m_parts) |
| 86 | pair.second.activePartDirty = true; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | void AnimatedPartSet::setEnabledStateTypes(StringList const& stateTypeNames) { |
| 91 | for (auto& pair : m_stateTypes) |