[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58052] branches/soc-2013-cycles_mblur/ intern/cycles/blender/addon/ui.py: Because Deformation Motion Blur will only be available on the CPU to
Gavin Howard
gavin.d.howard at gmail.com
Sun Jul 7 05:28:47 CEST 2013
Revision: 58052
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58052
Author: gdh
Date: 2013-07-07 03:28:44 +0000 (Sun, 07 Jul 2013)
Log Message:
-----------
Because Deformation Motion Blur will only be available on the CPU to
start with, I added code to keep it disabled if the device is set to
use the GPU.
Modified Paths:
--------------
branches/soc-2013-cycles_mblur/intern/cycles/blender/addon/ui.py
Modified: branches/soc-2013-cycles_mblur/intern/cycles/blender/addon/ui.py
===================================================================
--- branches/soc-2013-cycles_mblur/intern/cycles/blender/addon/ui.py 2013-07-06 22:57:27 UTC (rev 58051)
+++ branches/soc-2013-cycles_mblur/intern/cycles/blender/addon/ui.py 2013-07-07 03:28:44 UTC (rev 58052)
@@ -533,8 +533,11 @@
def draw(self, context):
layout = self.layout
+ scene = context.scene
+ cscene = scene.cycles
+
rd = context.scene.render
- layout.active = rd.use_motion_blur
+ layout.active = rd.use_motion_blur and cscene.device == 'CPU'
ob = context.object
blur = ob.cycles_mblur
More information about the Bf-blender-cvs
mailing list