fix the bug of armature use blendfunc
need set the dirty value to false after use the new blendfunc
fix encoding bug