Fix #13183: Wrong animation initial value calc. Close gh-1136.