diff options
author | Thomas Dinges <blender@dingto.org> | 2014-03-30 00:58:34 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-03-30 00:58:58 +0400 |
commit | a17c38f8e458f42d96054818ba81b19707335802 (patch) | |
tree | 66130ef3e5d6a633c820a2b7e75d5faa0b481bb3 /intern/cycles/blender/addon | |
parent | e659cfdaf7285be656ba51ee406e6b6f454de87e (diff) |
Cycles UI: Do not grey out Object Motion Blur buttons, when we use CPU fallback (User Preferences set to None).
Diffstat (limited to 'intern/cycles/blender/addon')
-rw-r--r-- | intern/cycles/blender/addon/ui.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py index 60d1b036d9d..9227e97664f 100644 --- a/intern/cycles/blender/addon/ui.py +++ b/intern/cycles/blender/addon/ui.py @@ -588,8 +588,9 @@ class CyclesObject_PT_motion_blur(CyclesButtonsPanel, Panel): rd = context.scene.render scene = context.scene cscene = scene.cycles + device_type = context.user_preferences.system.compute_device_type - layout.active = (rd.use_motion_blur and cscene.device == 'CPU') + layout.active = (rd.use_motion_blur and (device_type == 'NONE' or cscene.device == 'CPU')) ob = context.object cob = ob.cycles @@ -602,11 +603,12 @@ class CyclesObject_PT_motion_blur(CyclesButtonsPanel, Panel): rd = context.scene.render scene = context.scene cscene = scene.cycles + device_type = context.user_preferences.system.compute_device_type ob = context.object cob = ob.cycles - layout.active = (rd.use_motion_blur and cscene.device == 'CPU' and cob.use_motion_blur) + layout.active = (rd.use_motion_blur and (device_type == 'NONE' or cscene.device == 'CPU') and cob.use_motion_blur) row = layout.row() row.prop(cob, "use_deform_motion", text="Deformation") |