diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-08-29 14:21:10 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-08-29 14:21:10 +0400 |
commit | 47fb31404fcb7b3244d3a575807a5084996802cb (patch) | |
tree | 61060c547ae8c3f3b0753071c1a6e1b600520c5d /intern/cycles/render/session.h | |
parent | bae896691aa3d7bb2a75292da3cc490894996b01 (diff) |
Cycles: preview passes setting to set the max number of passes to render in
the viewport working now, set to 0 for unlimited (well, actually 2147483647).
Diffstat (limited to 'intern/cycles/render/session.h')
-rw-r--r-- | intern/cycles/render/session.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/render/session.h b/intern/cycles/render/session.h index 18983f55353..3aaaeedf0c5 100644 --- a/intern/cycles/render/session.h +++ b/intern/cycles/render/session.h @@ -109,6 +109,7 @@ public: bool ready_to_reset(); void reset(int w, int h, int passes); void set_passes(int passes); + void set_pause(bool pause); protected: struct DelayedReset { @@ -146,6 +147,10 @@ protected: volatile bool gpu_need_tonemap; thread_condition_variable gpu_need_tonemap_cond; + bool pause; + thread_condition_variable pause_cond; + thread_mutex pause_mutex; + double start_time; double reset_time; double preview_time; |