This was in fact completely messed up, but it worked by accident for all current cases. That is, we always inserted the decorator buttons immediately after the button they applied to. So the first button comparision in ui_but_anim_decorate_find_attached_button() would succeed, because it just compared a few values that all happened to be NULL and thus the comparison returned true. Further, avoid NULL-pointer dereferences and incorrect printing.
10 KiB
10 KiB