X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Fexport_armature.py;h=42c57b27016412a9af0549e516f8947bc0ccbf2c;hb=6c881bc1ee3c0af5c1bb4b3794dcb23ba096ac12;hp=c2ec67125f64c93f49322a5bbbb3e71bde68e485;hpb=6ee541fd39de1e1368134cb8a98a14f2f5ddd767;p=libs%2Fgl.git diff --git a/blender/io_mspgl/export_armature.py b/blender/io_mspgl/export_armature.py index c2ec6712..42c57b27 100644 --- a/blender/io_mspgl/export_armature.py +++ b/blender/io_mspgl/export_armature.py @@ -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".format(obj)) from .armature import Armature armature = Armature(obj.data)