Bugfix for [#29279] Cycles Displacement Panel appears when blender render engine...
authorThomas Dinges <blender@dingto.org>
Sat, 19 Nov 2011 22:59:48 +0000 (22:59 +0000)
committerThomas Dinges <blender@dingto.org>
Sat, 19 Nov 2011 22:59:48 +0000 (22:59 +0000)
intern/cycles/blender/addon/ui.py

index 00010bb7463f346b7e73a1c5913cccb159107e77..f3ed3b677fb5f35055181c615aef2e4b16781cdd 100644 (file)
@@ -295,7 +295,7 @@ class Cycles_PT_mesh_displacement(CyclesButtonsPanel, Panel):
 
     @classmethod
     def poll(cls, context):
-        return CyclesButtonsPanel.poll(context) and context.mesh or context.curve or context.meta_ball
+        return CyclesButtonsPanel.poll(context) and (context.mesh or context.curve or context.meta_ball)
 
     def draw(self, context):
         layout = self.layout