1 # ##### BEGIN GPL LICENSE BLOCK #####
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 # ##### END GPL LICENSE BLOCK #####
21 class ColorManagedViewSettingsPanel:
23 def draw(self, context):
26 space = context.space_data
27 window = context.window
28 display_settings = context.window.display_settings
29 space_view_settings = space.view_settings
31 if space_view_settings.use_global_settings:
32 view_settings = window.view_settings
34 view_settings = space.view_settings
37 col.prop(space_view_settings, "use_global_settings")
38 col.prop(display_settings, "display_device", text="Display")
39 col.prop(view_settings, "view_transform", text="View")
42 col.active = view_settings.view_transform not in {'ACES ODT Tonecurve', 'NONE'}
43 col.prop(view_settings, "exposure")
44 col.prop(view_settings, "gamma")