Fix material_id export
Fix material_id export

When different materials were applied to objects in the scene,
the exporter would only export material_id 0 for all objects.

apetrone/gemini,apetrone/gemini,apetrone/gemini,apetrone/gemini,apetrone/gemini