diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-06-01 00:55:10 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-06-01 00:58:49 +0300 |
commit | a63b55f6427b71cf2c6c4ae14652f6d2784d227b (patch) | |
tree | 2df12091c3e2816e34d11db4e9fdf2eb0b0b2f41 /intern/cycles | |
parent | a4bb1a58811c205adf71672e391091bbe7416bef (diff) |
Cycles UI: Show pause button only when in rendered mode
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/blender/addon/ui.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py index 1bb2b5acd36..8793ddb83f6 100644 --- a/intern/cycles/blender/addon/ui.py +++ b/intern/cycles/blender/addon/ui.py @@ -1475,8 +1475,9 @@ def draw_pause(self, context): if context.engine == "CYCLES": view = context.space_data - cscene = scene.cycles - layout.prop(cscene, "preview_pause", icon="PAUSE", text="") + if view.shading.type == 'RENDERED': + cscene = scene.cycles + layout.prop(cscene, "preview_pause", icon="PAUSE", text="") def get_panels(): |