Fixed the custom_object 3d drawing code to draw animations again.