Cycles: first step for implementation of non-progressive sampler that handles
[blender.git] / intern / cycles / blender / blender_object.cpp
index 9c98cacc9b8eb6d752fa9c75b99b316414dd8afa..d5b884cfccd46ca822c8f607fcb0bc1368e2e2b2 100644 (file)
@@ -154,6 +154,7 @@ void BlenderSync::sync_light(BL::Object b_parent, int b_index, BL::Object b_ob,
        /* shadow */
        PointerRNA clamp = RNA_pointer_get(&b_lamp.ptr, "cycles");
        light->cast_shadow = get_boolean(clamp, "cast_shadow");
+       light->samples = get_int(clamp, "samples");
 
        /* tag */
        light->tag_update(scene);
@@ -178,6 +179,7 @@ void BlenderSync::sync_background_light()
                        {
                                light->type = LIGHT_BACKGROUND;
                                light->map_resolution  = get_int(cworld, "sample_map_resolution");
+                               light->samples  = get_int(cworld, "samples");
                                light->shader = scene->default_background;
 
                                light->tag_update(scene);