optimization: avoid memory allocation when shape data has animation keyframe.