UI: Unhide the world mist panel if the mist pass is not enabled

This makes no sense to hide it since we can nowadays preview it inside the
viewport even if the render pass is not enabled.
This commit is contained in:
Clément Foucault 2022-06-28 18:31:49 +02:00
parent e127182065
commit 814f360c83
1 changed files with 1 additions and 6 deletions

View File

@ -46,12 +46,7 @@ class EEVEE_WORLD_PT_mist(WorldButtonsPanel, Panel):
@classmethod
def poll(cls, context):
engine = context.engine
if context.world and (engine in cls.COMPAT_ENGINES):
for view_layer in context.scene.view_layers:
if view_layer.use_pass_mist:
return True
return False
return context.world and (engine in cls.COMPAT_ENGINES)
def draw(self, context):
layout = self.layout