]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_armature.py
Redesign object exporting
[libs/gl.git] / blender / io_mspgl / export_armature.py
index c2ec67125f64c93f49322a5bbbb3e71bde68e485..27bf6e0b05df9341369258b0daefa4aa8d1dad0e 100644 (file)
@@ -1,16 +1,7 @@
 class ArmatureExporter:
-       def export_to_file(self, context, out_fn):
-               obj = context.active_object
-
-               statements = self.export_armature(context, obj)
-
-               with open(out_fn, "w") as out_file:
-                       for s in statements:
-                               s.write_to_file(out_file)
-
        def export_armature(self, obj):
                if obj.type!="ARMATURE":
-                       raise Exception("Object is not an armature")
+                       raise ValueError("Object is not an armature")
 
                from .armature import Armature
                armature = Armature(obj.data)