X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=blender%2Fio_mspgl%2Fexport_camera.py;h=02fce103c7f13d1f7fdc7e9fd934bd512c2f9031;hp=fb45535b199c77f600b8bb43e758570264ffb3ab;hb=db9fa2e2aba82aadc8da3fb8f4f4839419a06d90;hpb=f241ccca7d0d3f3073a948377bd557a70aa8f1d2 diff --git a/blender/io_mspgl/export_camera.py b/blender/io_mspgl/export_camera.py index fb45535b..02fce103 100644 --- a/blender/io_mspgl/export_camera.py +++ b/blender/io_mspgl/export_camera.py @@ -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")