X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=blender%2Fio_mspgl%2Fexport_light.py;h=7ccb966354faa2c2fd739316aa324379938ec240;hp=2fc8c8dd02bd3dbccec4b0204dd75ed0930c378e;hb=f501ffe2862fd8b4c5793542190e8e0a0d8de667;hpb=ab23d3910ac081066b42c184c6229aaa397dd46c diff --git a/blender/io_mspgl/export_light.py b/blender/io_mspgl/export_light.py index 2fc8c8dd..7ccb9663 100644 --- a/blender/io_mspgl/export_light.py +++ b/blender/io_mspgl/export_light.py @@ -16,6 +16,7 @@ class LightExporter: light_res.statements.append(Statement("type", Token("point"))) pos = obj.matrix_world@mathutils.Vector((0.0, 0.0, 0.0, 1.0)) light_res.statements.append(Statement("position", *obj.matrix_world.col[3][0:3])) + light_res.statements.append(Statement("attenuation", 1.0, 0.0, 1.0)) else: raise Exception("Can't export light {} of unknown type {}".format(light.name, light.type))