allow chaining dynamic width animations for texts

This commit is contained in:
Felix Kratz 2022-10-09 13:38:07 +02:00
parent d2e6a36f6b
commit cf5e7ccaff

View file

@ -416,7 +416,6 @@ bool text_parse_sub_domain(struct text* text, FILE* rsp, struct token property,
} else if (token_equals(property, PROPERTY_WIDTH)) {
struct token token = get_token(&message);
if (token_equals(token, ARGUMENT_DYNAMIC)) {
if (text->has_const_width) {
ANIMATE(text_set_width,
text,
text->custom_width,
@ -432,7 +431,6 @@ bool text_parse_sub_domain(struct text* text, FILE* rsp, struct token property,
INTERP_FUNCTION_LINEAR );
animator_add(&g_bar_manager.animator, animation);
}
}
else {
ANIMATE(text_set_width,
text,