Tomato Cycles: fix regression since rev49535
authorSergey Sharybin <sergey.vfx@gmail.com>
Sun, 5 Aug 2012 17:38:44 +0000 (17:38 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 5 Aug 2012 17:38:44 +0000 (17:38 +0000)
Wrong sample number was reporting in viewport rendering.

intern/cycles/render/session.cpp

index 3bd2c6af6d830cafe783e4ec1f78e75486bb96bd..7c4ac4e2277fa22522b5924f2c5882dac57d247c 100644 (file)
@@ -648,6 +648,7 @@ void Session::update_scene()
 
 void Session::update_status_time(bool show_pause, bool show_done)
 {
 
 void Session::update_status_time(bool show_pause, bool show_done)
 {
+       int sample = tile_manager.state.sample;
        int resolution = tile_manager.state.resolution;
        int num_tiles = tile_manager.state.num_tiles;
        int tile = tile_manager.state.num_rendered_tiles;
        int resolution = tile_manager.state.resolution;
        int num_tiles = tile_manager.state.num_tiles;
        int tile = tile_manager.state.num_rendered_tiles;