Commit: effb9120613c06060c1103981dfe6d58df05933d
Author: Thomas Dinges
Date:   Sun May 17 12:35:58 2015 +0200
Branches: master
https://developer.blender.org/rBeffb9120613c06060c1103981dfe6d58df05933d

Cycles Standalone: Expose various light settings.

===================================================================

M       intern/cycles/app/cycles_xml.cpp

===================================================================

diff --git a/intern/cycles/app/cycles_xml.cpp b/intern/cycles/app/cycles_xml.cpp
index 1cfc814..02cf146 100644
--- a/intern/cycles/app/cycles_xml.cpp
+++ b/intern/cycles/app/cycles_xml.cpp
@@ -1034,13 +1034,28 @@ static void xml_read_light(const XMLReadState& state, 
pugi::xml_node node)
        xml_read_float(&light->sizev, node, "sizev");
        xml_read_float3(&light->axisu, node, "axisu");
        xml_read_float3(&light->axisv, node, "axisv");
-       
+
+       /* Portal? (Area light only) */
+       xml_read_bool(&light->is_portal, node, "is_portal");
+
        /* Generic */
        xml_read_float(&light->size, node, "size");
        xml_read_float3(&light->dir, node, "dir");
        xml_read_float3(&light->co, node, "P");
        light->co = transform_point(&state.tfm, light->co);
 
+       /* Settings */
+       xml_read_bool(&light->cast_shadow, node, "cast_shadow");
+       xml_read_bool(&light->use_mis, node, "use_mis");
+       xml_read_int(&light->samples, node, "samples");
+       xml_read_int(&light->max_bounces, node, "max_bounces");
+
+       /* Ray Visibility */
+       xml_read_bool(&light->use_diffuse, node, "use_diffuse");
+       xml_read_bool(&light->use_glossy, node, "use_glossy");
+       xml_read_bool(&light->use_transmission, node, "use_transmission");
+       xml_read_bool(&light->use_scatter, node, "use_scatter");
+
        state.scene->lights.push_back(light);
 }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to