]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_material.py
Simplify exporter creation
[libs/gl.git] / blender / io_mspgl / export_material.py
index 69782b64cbb4cd7c3edf4fb3ebcd8064313141d3..792ab2903576ba4a10518fef480c06cb5cc49ac9 100644 (file)
@@ -50,14 +50,9 @@ def create_technique_resource(material, resources):
        return tech_res
 
 class MaterialExporter:
-       def create_texture_exporter(self):
-               from .export_texture import TextureExporter
-               texture_export = TextureExporter()
-               return texture_export
-
        def export_technique_resources(self, material, resources):
-               from .export_texture import SamplerExporter
-               texture_export = self.create_texture_exporter()
+               from .export_texture import SamplerExporter, TextureExporter
+               texture_export = TextureExporter()
                sampler_export = SamplerExporter()
 
                from .material import Material