- material_export.export_technique_resources(material, resources)
- resources[tech_name] = material_export.export_technique(material, resources=resources)
+ material_map_export.export_technique_resources(material_map, resources)
+ resources[tech_name] = material_map_export.export_technique(material_map, resources=resources)
+ elif l.material_slots and l.material_slots[0].material:
+ material = l.material_slots[0].material
+ if material.render_mode!='EXTERNAL':
+ tech_name = material.name+".tech"
+ if tech_name not in resources:
+ material_export.export_technique_resources(material, resources)
+ resources[tech_name] = material_export.export_technique(material, resources=resources)