diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2018-12-14 19:58:12 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2018-12-14 21:01:22 +0300 |
commit | ac68f44b8a0cb5926af2977721fc01cb4eb8e1b7 (patch) | |
tree | 83916ff499c32a69c75e523e3435573204526b35 /release | |
parent | ccc09ec124638f9aca0ba0f33e3b4cb22b023960 (diff) |
fix shader editor errors when showing world shader tree
probably an oversight in rBd40bffa17f6d
Reviewers: brecht
Differential Revision: https://developer.blender.org/D4079
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_node.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py index 1674940b77f..00f54c82036 100644 --- a/release/scripts/startup/bl_ui/space_node.py +++ b/release/scripts/startup/bl_ui/space_node.py @@ -567,7 +567,8 @@ class EEVEE_NODE_PT_material_settings(Panel): def poll(cls, context): snode = context.space_data return (context.engine in cls.COMPAT_ENGINES) and \ - snode.tree_type == 'ShaderNodeTree' and snode.id + snode.tree_type == 'ShaderNodeTree' and snode.id and \ + snode.id.bl_rna.identifier == 'Material' def draw(self, context): material = context.space_data.id @@ -584,7 +585,8 @@ class NODE_PT_material_viewport(Panel): @classmethod def poll(cls, context): snode = context.space_data - return snode.tree_type == 'ShaderNodeTree' and snode.id + return snode.tree_type == 'ShaderNodeTree' and snode.id and \ + snode.id.bl_rna.identifier == 'Material' def draw(self, context): material = context.space_data.id |