diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-06-28 19:31:49 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-06-28 19:48:39 +0300 |
commit | 814f360c83700496cd3e20cd8f264c5fce6749d7 (patch) | |
tree | c1dcd9d22f2ff9d3d928e07a2bb5adf6fdf7897c | |
parent | e127182065a073235bac4158db6b6af1f36651c5 (diff) |
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.
-rw-r--r-- | release/scripts/startup/bl_ui/properties_world.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/properties_world.py b/release/scripts/startup/bl_ui/properties_world.py index eb0fc473e64..34186785f2c 100644 --- a/release/scripts/startup/bl_ui/properties_world.py +++ b/release/scripts/startup/bl_ui/properties_world.py @@ -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 |