fixed animation compilation.
Removed CsResourceRef, now using ReObjectRef.