| 232 | } |
| 233 | |
| 234 | AnimatedPartSet::AnimationMode AnimatedPartSet::stringToAnimationMode(String const& string) { |
| 235 | if (string.equals("end", String::CaseInsensitive)) { |
| 236 | return End; |
| 237 | } else if (string.equals("loop", String::CaseInsensitive)) { |
| 238 | return Loop; |
| 239 | } else if (string.equals("transition", String::CaseInsensitive)) { |
| 240 | return Transition; |
| 241 | } else { |
| 242 | throw AnimatedPartSetException(strf("No such AnimationMode '{}'", string)); |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | void AnimatedPartSet::freshenActiveState(StateType& stateType) { |
| 247 | if (stateType.activeStateDirty) { |