If a filter is animated, it seems to stick around even if removed from the filters list.
Numbered Steps to Reproduce Problem:
1) Add a filter to an atom.
2) Animate said filter.
3) Set the atoms filters list to list()
If the filter is not animated, it goes away fine. If it is animated, it sticks around. Even trying to grab the filter from the filters list and manually deleting it doesn't work.
Code Snippet (if applicable) to Reproduce Problem:
mob
verb
AFilter()
filters += filter(type="outline", size=2, color="#ac323299")
animate(filters[1], size=1, time=5, loop=-1)
animate(size=2, time=5)
SFilter()
filters += filter(type="outline", size=2, color="#ac323299")
ClearFilters()
world << filters.len // 1
filters = list()
world << filters.len // 0
Obviously this is just a test case and can be all kinds of broken, but it serves it's purpose.
Expected Results:
Filter goes away
Actual Results:
Filter doesn't go away
Workarounds:
Dont animate filters that you might want to get rid of later.
EDIT: It does go away if you change the loop count to a positive value, once it has looped that many times.