diff options
author | Jonas Eschenburg <indyjo@gmx.de> | 2014-02-09 16:53:58 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-09 16:55:54 +0400 |
commit | c6d1eaa3b203d7a61952d48647c48d148bed9091 (patch) | |
tree | aa3d23a32ec1aa6dc102cd585b02f68beae2f544 /intern/cycles/blender | |
parent | 6bad063298bf276e4177991e9065091148bb6f0c (diff) |
Cycles: use COMPAT_ENGINES mechanism for UI panels.
This way addons like network renderers can more easily reuse them.
Reviewed By: brecht
Diffstat (limited to 'intern/cycles/blender')
-rw-r--r-- | intern/cycles/blender/addon/ui.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py index 55322fed8b8..3217a9697f0 100644 --- a/intern/cycles/blender/addon/ui.py +++ b/intern/cycles/blender/addon/ui.py @@ -41,11 +41,12 @@ class CyclesButtonsPanel(): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "render" + COMPAT_ENGINES = {'CYCLES'} @classmethod def poll(cls, context): rd = context.scene.render - return rd.engine == 'CYCLES' + return rd.engine in cls.COMPAT_ENGINES def draw_samples_info(layout, cscene): |