diff options
author | Julian Eisel <julian@blender.org> | 2020-03-09 14:48:06 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-03-09 14:48:06 +0300 |
commit | 27cdc6648470bbf06c81f818dc5f601eead45673 (patch) | |
tree | 082732635298d64508a228903ae0db65caf7365f /release/scripts | |
parent | 549a5fd661c06102ce203749f2f66bd2bf23cc0d (diff) |
Fix shading options missing in 3D View popover
Wasn't actually returning the poll() result during regular usage (i.e.
not re-used for scene or VR view shading options).
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 1931337b384..fd4cf2feec8 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -5570,17 +5570,16 @@ class VIEW3D_PT_shading_options(Panel): @classmethod def poll(cls, context): - cls.poll_ex(context) + return cls.poll_ex(context) def draw(self, context): - VIEW3D_PT_shading_options.draw_ex(self, context) + self.draw_ex(context) @classmethod def poll_ex(cls, context, shading=None): shading = VIEW3D_PT_shading.get_shading(context, shading) return shading.type in {'WIREFRAME', 'SOLID'} - @staticmethod def draw_ex(self, context, shading=None): layout = self.layout |