X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Fexport_light.py;h=7ccb966354faa2c2fd739316aa324379938ec240;hb=6fbc3217471932e1e46a694e4c4376673010f814;hp=2fc8c8dd02bd3dbccec4b0204dd75ed0930c378e;hpb=adc26a2e141a2853b6c5025130c46a46cece4b84;p=libs%2Fgl.git 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))