Probe: Fix probe panel

This commit is contained in:
Clément Foucault 2017-06-14 10:36:33 +02:00
parent 4a83f3e2a5
commit 88602ea017
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class DATA_PT_lightprobe_parallax(DataButtonsPanel, Panel):
@classmethod
def poll(cls, context):
engine = context.scene.render.engine
return context.probe and context.probe.type == 'CUBEMAP' and (engine in cls.COMPAT_ENGINES)
return context.lightprobe and context.lightprobe.type == 'CUBEMAP' and (engine in cls.COMPAT_ENGINES)
def draw(self, context):
layout = self.layout