Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2022-06-28 19:31:49 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-06-28 19:48:39 +0300
commit814f360c83700496cd3e20cd8f264c5fce6749d7 (patch)
treec1dcd9d22f2ff9d3d928e07a2bb5adf6fdf7897c /release
parente127182065a073235bac4158db6b6af1f36651c5 (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.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_world.py7
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