X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Fexport_scene.py;h=77755a65b7479353958f36ebee02c8f77635a1bd;hb=7d8c187f036a7c91f9073ca0071a20807c0f1aa5;hp=39a7428e146652018c5db011f2e8007e08d0e06c;hpb=57232117bfab90f5dd80131daa47d2f184de9ae2;p=libs%2Fgl.git diff --git a/blender/io_mspgl/export_scene.py b/blender/io_mspgl/export_scene.py index 39a7428e..77755a65 100644 --- a/blender/io_mspgl/export_scene.py +++ b/blender/io_mspgl/export_scene.py @@ -101,6 +101,7 @@ class SceneExporter: lighting_name = scene.name+".lightn" if lighting_name not in resources: lighting_res = Resource(lighting_name, "lighting") + lighting_res.statements.append(Statement("ambient", *tuple(scene.ambient_light))) for l in lights: lighting_res.statements.append(lighting_res.create_reference_statement("light", resources[l.name+".light"]))