Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2014-03-30 00:58:34 +0400
committerThomas Dinges <blender@dingto.org>2014-03-30 00:58:58 +0400
commita17c38f8e458f42d96054818ba81b19707335802 (patch)
tree66130ef3e5d6a633c820a2b7e75d5faa0b481bb3 /intern/cycles
parente659cfdaf7285be656ba51ee406e6b6f454de87e (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')
-rw-r--r--intern/cycles/blender/addon/ui.py6
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")