]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/export_camera.py
Redesign object exporting
[libs/gl.git] / blender / io_mspgl / export_camera.py
index fb45535b199c77f600b8bb43e758570264ffb3ab..02fce103c7f13d1f7fdc7e9fd934bd512c2f9031 100644 (file)
@@ -2,16 +2,9 @@ import math
 import mathutils
 
 class CameraExporter:
-       def export_to_file(self, context, out_fn):
-               obj = context.active_object
-
-               resource = self.export_camera(obj)
-
-               resource.write_to_file(out_fn)
-
        def export_camera(self, obj):
                if obj.type!='CAMERA':
-                       raise Exception("Object is not a camera")
+                       raise ValueError("Object is not a camera")
 
                from .datafile import Resource, Statement
                resource = Resource(obj.name+".camera", "camera")