def parse_mtllib(self, args): [mtllib] = args if not os.path.exists(self.path + mtllib): return materials = material.MaterialParser(self.path + mtllib, self.path).materials for material_name, material_object in materials.items(): self.wavefront.materials[material_name] = material_object
def parse_mtllib(self, args): [mtllib] = args materials = material.MaterialParser(mtllib).materials for material_name, material_object in materials.items(): self.wavefront.materials[material_name] = material_object