Fix Cycles bake panel showing for other renderers, after recent changes

This commit is contained in:
Brecht Van Lommel
2019-09-26 16:30:04 +02:00
parent 454c1a5de4
commit 09dc7bce37

View File

@@ -1772,7 +1772,7 @@ class CYCLES_RENDER_PT_bake(CyclesButtonsPanel, Panel):
@classmethod
def poll(cls, context):
return not use_optix(context)
return CyclesButtonsPanel.poll(context) and not use_optix(context)
def draw(self, context):
layout = self.layout