Cycles Hair: Strand Minimum Pixel Size
[blender.git] / intern / cycles / render / session.cpp
index 075f5eb6bab7a6c1b3a0f0e44104193a6b55894f..569c29e0b094e7ef08eba7f005acb4829f6d3668 100644 (file)
@@ -719,10 +719,12 @@ void Session::update_scene()
        Camera *cam = scene->camera;
        int width = tile_manager.state.buffer.full_width;
        int height = tile_manager.state.buffer.full_height;
+       int resolution = tile_manager.state.resolution_divider;
 
        if(width != cam->width || height != cam->height) {
                cam->width = width;
                cam->height = height;
+               cam->resolution = resolution;
                cam->tag_update();
        }