Check anmations valid before changing model to prevent some crash.
Extend bbox and abox to 6 values for further use.
Authored by: utunnels 2012-11-15
Parent: [r3728]
Child: [r3730]