]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_scene.py
Import fixes for exporter
[libs/gl.git] / blender / io_mspgl / export_scene.py
index abdd61b062ed6ae72bc2297b1b7d5e3c75d0e3bc..68b589879c4fdc2722f41157bfe018590d0122f9 100644 (file)
@@ -30,8 +30,6 @@ class SceneExporter:
                                                continue
                                        if u.data.name!=o.data.name:
                                                continue
-                                       if u.technique!=o.technique:
-                                               continue
                                        if any(s.link=="OBJECT" for s in u.material_slots):
                                                continue
 
@@ -64,8 +62,8 @@ class SceneExporter:
                scene_res = self.export_scene(context, objs, progress, prototypes=object_prototypes, resources=resources)
                refs = scene_res.collect_references()
 
-               from .datafile import Statement
                if self.resource_collection:
+                       from .datafile import Statement
                        keywords = { ".mat": "material",
                                ".mesh": "mesh",
                                ".object": "object",