Merge "Fixed a bug where animations were generated when closed." into lmp-dev