2009-11-01 15:21:20 +00:00
|
|
|
# ##### BEGIN GPL LICENSE BLOCK #####
|
2012-12-19 12:30:39 +00:00
|
|
|
|
2009-11-01 15:21:20 +00:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
2009-11-03 07:23:02 +00:00
|
|
|
#
|
2009-11-01 15:21:20 +00:00
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
2009-11-03 07:23:02 +00:00
|
|
|
#
|
2009-11-01 15:21:20 +00:00
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software Foundation,
|
2010-02-12 13:34:04 +00:00
|
|
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2009-11-01 15:21:20 +00:00
|
|
|
#
|
|
|
|
# ##### END GPL LICENSE BLOCK #####
|
2009-10-31 20:16:59 +00:00
|
|
|
|
2009-10-31 23:35:56 +00:00
|
|
|
# <pep8 compliant>
|
2019-03-14 15:14:43 +11:00
|
|
|
from bpy.types import Panel
|
2019-06-11 16:08:32 +10:00
|
|
|
from bl_ui.space_view3d import (
|
2018-07-11 11:43:56 +02:00
|
|
|
VIEW3D_PT_shading_lighting,
|
|
|
|
VIEW3D_PT_shading_color,
|
|
|
|
VIEW3D_PT_shading_options,
|
|
|
|
)
|
2009-10-14 14:07:32 +00:00
|
|
|
|
2019-09-12 16:12:19 +02:00
|
|
|
from bl_ui.properties_grease_pencil_common import GreasePencilSimplifyPanel
|
|
|
|
|
2009-11-14 13:35:44 +00:00
|
|
|
|
2015-01-29 15:35:06 +11:00
|
|
|
class RenderButtonsPanel:
|
2009-10-31 19:31:45 +00:00
|
|
|
bl_space_type = 'PROPERTIES'
|
|
|
|
bl_region_type = 'WINDOW'
|
|
|
|
bl_context = "render"
|
|
|
|
# COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here
|
|
|
|
|
2010-08-09 01:37:09 +00:00
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2018-04-17 13:35:05 +02:00
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
2017-10-16 17:15:03 -02:00
|
|
|
|
|
|
|
|
|
|
|
class RENDER_PT_context(Panel):
|
|
|
|
bl_space_type = 'PROPERTIES'
|
|
|
|
bl_region_type = 'WINDOW'
|
|
|
|
bl_context = "render"
|
|
|
|
bl_options = {'HIDE_HEADER'}
|
|
|
|
bl_label = ""
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
return context.scene
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2018-05-31 16:05:38 +02:00
|
|
|
layout.use_property_split = True
|
2018-06-18 12:41:31 +02:00
|
|
|
layout.use_property_decorate = False
|
2017-10-16 17:15:03 -02:00
|
|
|
|
|
|
|
scene = context.scene
|
2018-04-17 13:35:05 +02:00
|
|
|
rd = scene.render
|
2017-10-16 17:15:03 -02:00
|
|
|
|
2018-04-17 13:35:05 +02:00
|
|
|
if rd.has_multiple_engines:
|
2018-05-31 16:05:38 +02:00
|
|
|
layout.prop(rd, "engine", text="Render Engine")
|
2012-12-20 07:57:26 +00:00
|
|
|
|
|
|
|
|
2018-10-31 13:06:44 +01:00
|
|
|
class RENDER_PT_color_management(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Color Management"
|
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
2019-05-19 11:23:43 +02:00
|
|
|
bl_order = 100
|
2018-11-26 19:00:01 +01:00
|
|
|
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}
|
2018-10-31 13:06:44 +01:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.use_property_split = True
|
2018-11-02 15:31:17 +01:00
|
|
|
layout.use_property_decorate = False # No animation.
|
2018-10-31 13:06:44 +01:00
|
|
|
|
|
|
|
scene = context.scene
|
|
|
|
view = scene.view_settings
|
|
|
|
|
|
|
|
flow = layout.grid_flow(row_major=True, columns=0, even_columns=False, even_rows=False, align=True)
|
|
|
|
|
|
|
|
col = flow.column()
|
|
|
|
col.prop(scene.display_settings, "display_device")
|
|
|
|
|
|
|
|
col.separator()
|
|
|
|
|
|
|
|
col.prop(view, "view_transform")
|
|
|
|
col.prop(view, "look")
|
|
|
|
|
|
|
|
col = flow.column()
|
|
|
|
col.prop(view, "exposure")
|
|
|
|
col.prop(view, "gamma")
|
|
|
|
|
|
|
|
col.separator()
|
|
|
|
|
|
|
|
col.prop(scene.sequencer_colorspace_settings, "name", text="Sequencer")
|
|
|
|
|
|
|
|
|
|
|
|
class RENDER_PT_color_management_curves(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Use Curves"
|
|
|
|
bl_parent_id = "RENDER_PT_color_management"
|
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
2018-11-26 19:00:01 +01:00
|
|
|
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}
|
2018-10-31 13:06:44 +01:00
|
|
|
|
|
|
|
def draw_header(self, context):
|
|
|
|
|
|
|
|
scene = context.scene
|
|
|
|
view = scene.view_settings
|
|
|
|
|
|
|
|
self.layout.prop(view, "use_curve_mapping", text="")
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
|
|
|
scene = context.scene
|
|
|
|
view = scene.view_settings
|
|
|
|
|
|
|
|
layout.use_property_split = False
|
2018-11-02 15:31:17 +01:00
|
|
|
layout.use_property_decorate = False # No animation.
|
|
|
|
|
2018-10-31 13:06:44 +01:00
|
|
|
layout.enabled = view.use_curve_mapping
|
|
|
|
|
2019-03-04 22:06:23 +11:00
|
|
|
layout.template_curve_mapping(view, "curve_mapping", type='COLOR', levels=True)
|
2018-10-31 13:06:44 +01:00
|
|
|
|
|
|
|
|
2017-10-03 18:30:36 +02:00
|
|
|
class RENDER_PT_eevee_ambient_occlusion(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Ambient Occlusion"
|
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
2017-05-11 14:30:33 +02:00
|
|
|
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2018-04-17 13:35:05 +02:00
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
2017-05-11 14:30:33 +02:00
|
|
|
|
2017-10-03 18:30:36 +02:00
|
|
|
def draw_header(self, context):
|
|
|
|
scene = context.scene
|
2018-05-16 19:34:24 +02:00
|
|
|
props = scene.eevee
|
2018-05-26 11:54:25 +02:00
|
|
|
self.layout.prop(props, "use_gtao", text="")
|
2017-10-03 18:30:36 +02:00
|
|
|
|
2017-05-11 14:30:33 +02:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2018-05-30 17:47:48 +02:00
|
|
|
layout.use_property_split = True
|
2017-05-11 14:30:33 +02:00
|
|
|
scene = context.scene
|
2018-05-16 19:34:24 +02:00
|
|
|
props = scene.eevee
|
2017-05-11 14:30:33 +02:00
|
|
|
|
2018-05-26 11:54:25 +02:00
|
|
|
layout.active = props.use_gtao
|
2017-05-11 14:30:33 +02:00
|
|
|
col = layout.column()
|
2017-10-03 18:30:36 +02:00
|
|
|
col.prop(props, "gtao_distance")
|
|
|
|
col.prop(props, "gtao_factor")
|
|
|
|
col.prop(props, "gtao_quality")
|
2018-10-31 17:23:43 +01:00
|
|
|
col.prop(props, "use_gtao_bent_normals")
|
|
|
|
col.prop(props, "use_gtao_bounce")
|
2017-05-11 14:30:33 +02:00
|
|
|
|
2018-12-20 13:01:40 +11:00
|
|
|
|
2017-10-03 18:30:36 +02:00
|
|
|
class RENDER_PT_eevee_motion_blur(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Motion Blur"
|
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
2017-05-11 14:30:33 +02:00
|
|
|
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2018-04-17 13:35:05 +02:00
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
2017-05-11 14:30:33 +02:00
|
|
|
|
2017-10-03 18:30:36 +02:00
|
|
|
def draw_header(self, context):
|
|
|
|
scene = context.scene
|
2018-05-16 19:34:24 +02:00
|
|
|
props = scene.eevee
|
2018-05-26 11:54:25 +02:00
|
|
|
self.layout.prop(props, "use_motion_blur", text="")
|
2017-10-03 18:30:36 +02:00
|
|
|
|
2017-05-11 14:30:33 +02:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2018-05-30 17:47:48 +02:00
|
|
|
layout.use_property_split = True
|
2017-05-11 14:30:33 +02:00
|
|
|
scene = context.scene
|
2018-05-16 19:34:24 +02:00
|
|
|
props = scene.eevee
|
2017-05-11 14:30:33 +02:00
|
|
|
|
2018-05-26 11:54:25 +02:00
|
|
|
layout.active = props.use_motion_blur
|
2017-05-11 14:30:33 +02:00
|
|
|
col = layout.column()
|
|
|
|
col.prop(props, "motion_blur_samples")
|
|
|
|
col.prop(props, "motion_blur_shutter")
|
|
|
|
|
2017-10-03 18:30:36 +02:00
|
|
|
|
|
|
|
class RENDER_PT_eevee_depth_of_field(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Depth of Field"
|
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
|
|
|
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2018-04-17 13:35:05 +02:00
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
2017-10-03 18:30:36 +02:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2018-05-30 17:47:48 +02:00
|
|
|
layout.use_property_split = True
|
2017-10-03 18:30:36 +02:00
|
|
|
scene = context.scene
|
2018-05-16 19:34:24 +02:00
|
|
|
props = scene.eevee
|
2017-10-03 18:30:36 +02:00
|
|
|
|
|
|
|
col = layout.column()
|
2017-05-11 14:30:33 +02:00
|
|
|
col.prop(props, "bokeh_max_size")
|
2018-11-12 21:15:33 +01:00
|
|
|
# Not supported yet
|
|
|
|
# col.prop(props, "bokeh_threshold")
|
2017-05-11 14:30:33 +02:00
|
|
|
|
2017-10-03 18:30:36 +02:00
|
|
|
|
|
|
|
class RENDER_PT_eevee_bloom(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Bloom"
|
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
|
|
|
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2018-04-17 13:35:05 +02:00
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
2017-10-03 18:30:36 +02:00
|
|
|
|
|
|
|
def draw_header(self, context):
|
|
|
|
scene = context.scene
|
2018-05-16 19:34:24 +02:00
|
|
|
props = scene.eevee
|
2018-05-26 11:54:25 +02:00
|
|
|
self.layout.prop(props, "use_bloom", text="")
|
2017-10-03 18:30:36 +02:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2018-05-30 17:47:48 +02:00
|
|
|
layout.use_property_split = True
|
|
|
|
|
2017-10-03 18:30:36 +02:00
|
|
|
scene = context.scene
|
2018-05-16 19:34:24 +02:00
|
|
|
props = scene.eevee
|
2017-10-03 18:30:36 +02:00
|
|
|
|
2018-05-26 11:54:25 +02:00
|
|
|
layout.active = props.use_bloom
|
2017-10-03 18:30:36 +02:00
|
|
|
col = layout.column()
|
2017-05-11 14:30:33 +02:00
|
|
|
col.prop(props, "bloom_threshold")
|
|
|
|
col.prop(props, "bloom_knee")
|
|
|
|
col.prop(props, "bloom_radius")
|
2017-08-19 02:40:02 +02:00
|
|
|
col.prop(props, "bloom_color")
|
2017-05-11 14:30:33 +02:00
|
|
|
col.prop(props, "bloom_intensity")
|
2017-08-19 02:39:16 +02:00
|
|
|
col.prop(props, "bloom_clamp")
|
2017-05-11 14:30:33 +02:00
|
|
|
|
2017-02-07 11:20:15 +01:00
|
|
|
|
2017-07-05 14:44:43 +02:00
|
|
|
class RENDER_PT_eevee_volumetric(RenderButtonsPanel, Panel):
|
2019-06-29 11:35:30 -04:00
|
|
|
bl_label = "Volumetrics"
|
2017-10-03 18:30:36 +02:00
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
2017-07-05 14:44:43 +02:00
|
|
|
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2018-04-17 13:35:05 +02:00
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
2017-07-05 14:44:43 +02:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2018-05-30 17:47:48 +02:00
|
|
|
layout.use_property_split = True
|
|
|
|
|
2017-07-05 14:44:43 +02:00
|
|
|
scene = context.scene
|
2018-05-16 19:34:24 +02:00
|
|
|
props = scene.eevee
|
2017-07-05 14:44:43 +02:00
|
|
|
|
2018-10-31 17:23:43 +01:00
|
|
|
col = layout.column(align=True)
|
|
|
|
col.prop(props, "volumetric_start")
|
|
|
|
col.prop(props, "volumetric_end")
|
|
|
|
|
2017-07-05 14:44:43 +02:00
|
|
|
col = layout.column()
|
2017-10-24 14:49:00 +02:00
|
|
|
col.prop(props, "volumetric_tile_size")
|
2017-07-05 18:28:48 +02:00
|
|
|
col.prop(props, "volumetric_samples")
|
2018-11-16 19:24:55 +01:00
|
|
|
col.prop(props, "volumetric_sample_distribution", text="Distribution")
|
2018-05-30 17:47:48 +02:00
|
|
|
|
2018-10-31 17:23:43 +01:00
|
|
|
|
|
|
|
class RENDER_PT_eevee_volumetric_lighting(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Volumetric Lighting"
|
|
|
|
bl_parent_id = "RENDER_PT_eevee_volumetric"
|
|
|
|
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
|
|
|
|
|
|
|
def draw_header(self, context):
|
|
|
|
scene = context.scene
|
|
|
|
props = scene.eevee
|
|
|
|
self.layout.prop(props, "use_volumetric_lights", text="")
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.use_property_split = True
|
|
|
|
|
|
|
|
scene = context.scene
|
|
|
|
props = scene.eevee
|
|
|
|
|
|
|
|
layout.active = props.use_volumetric_lights
|
|
|
|
layout.prop(props, "volumetric_light_clamp", text="Light Clamping")
|
|
|
|
|
|
|
|
|
|
|
|
class RENDER_PT_eevee_volumetric_shadows(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Volumetric Shadows"
|
|
|
|
bl_parent_id = "RENDER_PT_eevee_volumetric"
|
|
|
|
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
|
|
|
|
|
|
|
def draw_header(self, context):
|
|
|
|
scene = context.scene
|
|
|
|
props = scene.eevee
|
|
|
|
self.layout.prop(props, "use_volumetric_shadows", text="")
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.use_property_split = True
|
|
|
|
|
|
|
|
scene = context.scene
|
|
|
|
props = scene.eevee
|
|
|
|
|
|
|
|
layout.active = props.use_volumetric_shadows
|
2020-03-19 20:32:18 +01:00
|
|
|
layout.prop(props, "volumetric_shadow_samples", text="Samples")
|
2017-07-05 14:44:43 +02:00
|
|
|
|
|
|
|
|
2017-11-14 00:49:54 +01:00
|
|
|
class RENDER_PT_eevee_subsurface_scattering(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Subsurface Scattering"
|
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
|
|
|
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2018-04-17 13:35:05 +02:00
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
2017-11-14 00:49:54 +01:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2018-05-30 17:47:48 +02:00
|
|
|
layout.use_property_split = True
|
|
|
|
|
2017-11-14 00:49:54 +01:00
|
|
|
scene = context.scene
|
2018-05-16 19:34:24 +02:00
|
|
|
props = scene.eevee
|
2017-11-14 00:49:54 +01:00
|
|
|
|
|
|
|
col = layout.column()
|
2017-11-14 02:17:34 +01:00
|
|
|
col.prop(props, "sss_samples")
|
|
|
|
col.prop(props, "sss_jitter_threshold")
|
2017-11-14 00:49:54 +01:00
|
|
|
|
|
|
|
|
2017-07-24 11:18:11 +02:00
|
|
|
class RENDER_PT_eevee_screen_space_reflections(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Screen Space Reflections"
|
2017-10-03 18:30:36 +02:00
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
2017-07-16 23:49:25 +02:00
|
|
|
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2018-04-17 13:35:05 +02:00
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
2017-07-16 23:49:25 +02:00
|
|
|
|
2017-07-24 11:18:11 +02:00
|
|
|
def draw_header(self, context):
|
|
|
|
scene = context.scene
|
2018-05-16 19:34:24 +02:00
|
|
|
props = scene.eevee
|
2018-05-26 11:54:25 +02:00
|
|
|
self.layout.prop(props, "use_ssr", text="")
|
2017-07-24 11:18:11 +02:00
|
|
|
|
2017-07-16 23:49:25 +02:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2018-05-30 17:47:48 +02:00
|
|
|
layout.use_property_split = True
|
|
|
|
|
2017-07-16 23:49:25 +02:00
|
|
|
scene = context.scene
|
2018-05-16 19:34:24 +02:00
|
|
|
props = scene.eevee
|
2017-07-16 23:49:25 +02:00
|
|
|
|
|
|
|
col = layout.column()
|
2018-05-26 11:54:25 +02:00
|
|
|
col.active = props.use_ssr
|
2018-05-30 17:47:48 +02:00
|
|
|
col.prop(props, "use_ssr_refraction", text="Refraction")
|
2018-05-26 11:54:25 +02:00
|
|
|
col.prop(props, "use_ssr_halfres")
|
2017-07-30 17:11:05 +02:00
|
|
|
col.prop(props, "ssr_quality")
|
2017-07-31 15:18:22 +02:00
|
|
|
col.prop(props, "ssr_max_roughness")
|
2017-07-21 23:48:48 +02:00
|
|
|
col.prop(props, "ssr_thickness")
|
|
|
|
col.prop(props, "ssr_border_fade")
|
2017-07-24 11:18:11 +02:00
|
|
|
col.prop(props, "ssr_firefly_fac")
|
2017-07-16 23:49:25 +02:00
|
|
|
|
|
|
|
|
2017-09-01 15:59:58 +02:00
|
|
|
class RENDER_PT_eevee_shadows(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Shadows"
|
2017-10-03 18:30:36 +02:00
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
2017-09-01 15:59:58 +02:00
|
|
|
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2018-04-17 13:35:05 +02:00
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
2017-09-01 15:59:58 +02:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2018-05-30 17:47:48 +02:00
|
|
|
layout.use_property_split = True
|
|
|
|
|
2017-09-01 15:59:58 +02:00
|
|
|
scene = context.scene
|
2018-05-16 19:34:24 +02:00
|
|
|
props = scene.eevee
|
2017-09-01 15:59:58 +02:00
|
|
|
|
|
|
|
col = layout.column()
|
2018-06-27 22:11:29 +02:00
|
|
|
col.prop(props, "shadow_cube_size", text="Cube Size")
|
|
|
|
col.prop(props, "shadow_cascade_size", text="Cascade Size")
|
2018-05-26 11:54:25 +02:00
|
|
|
col.prop(props, "use_shadow_high_bitdepth")
|
2018-10-28 21:41:40 +01:00
|
|
|
col.prop(props, "use_soft_shadows")
|
2018-11-15 14:44:45 +01:00
|
|
|
col.prop(props, "light_threshold")
|
2017-09-01 15:59:58 +02:00
|
|
|
|
|
|
|
|
2017-10-03 18:30:36 +02:00
|
|
|
class RENDER_PT_eevee_sampling(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Sampling"
|
2017-09-25 20:14:07 +02:00
|
|
|
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2018-04-17 13:35:05 +02:00
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
2017-09-25 20:14:07 +02:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2018-05-30 17:47:48 +02:00
|
|
|
layout.use_property_split = True
|
2018-06-17 12:38:28 +02:00
|
|
|
layout.use_property_decorate = False # No animation.
|
2018-05-30 17:47:48 +02:00
|
|
|
|
2017-09-25 20:14:07 +02:00
|
|
|
scene = context.scene
|
2018-05-16 19:34:24 +02:00
|
|
|
props = scene.eevee
|
2017-09-25 20:14:07 +02:00
|
|
|
|
2019-05-19 17:09:55 +02:00
|
|
|
col = layout.column(align=True)
|
2019-01-22 19:43:54 -02:00
|
|
|
col.prop(props, "taa_render_samples", text="Render")
|
|
|
|
col.prop(props, "taa_samples", text="Viewport")
|
2019-05-19 17:09:55 +02:00
|
|
|
|
|
|
|
col = layout.column()
|
2018-05-26 11:54:25 +02:00
|
|
|
col.prop(props, "use_taa_reprojection")
|
2017-09-25 20:14:07 +02:00
|
|
|
|
|
|
|
|
2017-10-03 18:30:36 +02:00
|
|
|
class RENDER_PT_eevee_indirect_lighting(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Indirect Lighting"
|
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
2017-10-01 02:19:10 +02:00
|
|
|
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2018-04-17 13:35:05 +02:00
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
2017-10-01 02:19:10 +02:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2018-05-30 17:47:48 +02:00
|
|
|
layout.use_property_split = True
|
2018-07-10 15:02:25 +02:00
|
|
|
layout.use_property_decorate = False # No animation.
|
2018-05-30 17:47:48 +02:00
|
|
|
|
2017-10-01 02:19:10 +02:00
|
|
|
scene = context.scene
|
2018-05-16 19:34:24 +02:00
|
|
|
props = scene.eevee
|
2017-10-01 02:19:10 +02:00
|
|
|
|
|
|
|
col = layout.column()
|
2018-07-10 15:02:25 +02:00
|
|
|
col.operator("scene.light_cache_bake", text="Bake Indirect Lighting", icon='RENDER_STILL')
|
2018-09-03 14:15:18 +10:00
|
|
|
col.operator("scene.light_cache_bake", text="Bake Cubemap Only", icon='LIGHTPROBE_CUBEMAP').subset = 'CUBEMAPS'
|
2019-01-31 19:49:47 +01:00
|
|
|
col.operator("scene.light_cache_free", text="Delete Lighting Cache")
|
2018-07-10 15:02:25 +02:00
|
|
|
|
|
|
|
cache_info = scene.eevee.gi_cache_info
|
|
|
|
if cache_info:
|
|
|
|
col.label(text=cache_info)
|
|
|
|
|
|
|
|
col.prop(props, "gi_auto_bake")
|
|
|
|
|
2017-10-01 02:19:10 +02:00
|
|
|
col.prop(props, "gi_diffuse_bounces")
|
2017-10-10 21:56:11 +02:00
|
|
|
col.prop(props, "gi_cubemap_resolution")
|
2018-06-27 22:11:29 +02:00
|
|
|
col.prop(props, "gi_visibility_resolution", text="Diffuse Occlusion")
|
2018-11-15 18:13:07 +01:00
|
|
|
col.prop(props, "gi_irradiance_smoothing")
|
2018-11-15 19:41:15 +01:00
|
|
|
col.prop(props, "gi_glossy_clamp")
|
2018-11-15 20:04:35 +01:00
|
|
|
col.prop(props, "gi_filter_quality")
|
2018-11-15 18:13:07 +01:00
|
|
|
|
2017-10-01 02:19:10 +02:00
|
|
|
|
2018-10-31 17:23:43 +01:00
|
|
|
class RENDER_PT_eevee_indirect_lighting_display(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Display"
|
|
|
|
bl_parent_id = "RENDER_PT_eevee_indirect_lighting"
|
|
|
|
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
2018-07-10 15:02:25 +02:00
|
|
|
|
2018-10-31 17:23:43 +01:00
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.use_property_split = True
|
|
|
|
layout.use_property_decorate = False # No animation.
|
|
|
|
|
|
|
|
scene = context.scene
|
|
|
|
props = scene.eevee
|
|
|
|
|
|
|
|
row = layout.row(align=True)
|
|
|
|
row.prop(props, "gi_cubemap_display_size", text="Cubemap Size")
|
2018-11-05 12:53:54 +01:00
|
|
|
row.prop(props, "gi_show_cubemaps", text="", toggle=True)
|
2018-07-10 15:02:25 +02:00
|
|
|
|
2018-10-31 17:23:43 +01:00
|
|
|
row = layout.row(align=True)
|
|
|
|
row.prop(props, "gi_irradiance_display_size", text="Irradiance Size")
|
2018-11-05 12:53:54 +01:00
|
|
|
row.prop(props, "gi_show_irradiance", text="", toggle=True)
|
2018-07-10 15:02:25 +02:00
|
|
|
|
2017-10-01 02:19:10 +02:00
|
|
|
|
2018-02-01 18:54:17 +01:00
|
|
|
class RENDER_PT_eevee_film(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Film"
|
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
|
|
|
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
2018-04-17 13:35:05 +02:00
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
2018-02-01 18:54:17 +01:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
2018-05-30 17:47:48 +02:00
|
|
|
layout.use_property_split = True
|
|
|
|
|
2018-02-01 18:54:17 +01:00
|
|
|
scene = context.scene
|
|
|
|
rd = scene.render
|
UI: Layout changes for new checkbox layout possibilities
Follow-up to previous commit.
Some examples:
{F8473507} {F8473508} {F8473509} {F8473510}
For more screenshots, please see D7430.
We use column or row headings here to bring more structure, and to give
the eye visual anchors which aid eye-scanning. The left-aligned
checkboxes likewise help with this. And we keep the adherence to the
center line, so the alignment matches up between the various buttons and
controls.
* Changes the property split percentage from 50/50% to 40/60%. This is
needed to give enough space for the checkboxes. But in most cases this
looks better anyway - see Transform panel. In some cases it simply
fills out the available space more efficently.
* Fix various hacks where we previously used manually defined splits.
When we did this, the alignment was never quite right, and the layout
code was a mess.
* Adds column headings to many places where a list of checkboxes all
share a common purpose or leading text.
* Add checkbox + value configurations various places where a checkbox
only serves to enable the value slider
* Removes most uses of grid flow layout. The grid flow layouts combine
poorly with column headings, and also they would mess alignment up
badly. The grid flow layouts also often made buttons and controls jump
around on the screen if you would just resize editors slightly,
causing visual confusion, making users lose their place. The logic for
at what time the list of items would re-flow was often flawed, jumping
to multiple columns too fast or too late - and frankly, the grid flow
layouts would often just look bad.
Maniphest Task: https://developer.blender.org/T65965
Differential Revision: https://developer.blender.org/D7430
Reviewed by: Brecht Van Lommel, Pablo Vazquez.
Most work here by William Reynish, few changes by Julian Eisel.
2020-04-17 16:54:03 +02:00
|
|
|
props = scene.eevee
|
2018-02-01 18:54:17 +01:00
|
|
|
|
2018-05-30 17:47:48 +02:00
|
|
|
col = layout.column()
|
2018-02-05 01:49:19 +01:00
|
|
|
col.prop(rd, "filter_size")
|
2019-05-16 17:03:16 +02:00
|
|
|
col.prop(rd, "film_transparent", text="Transparent")
|
2018-02-01 18:54:17 +01:00
|
|
|
|
UI: Layout changes for new checkbox layout possibilities
Follow-up to previous commit.
Some examples:
{F8473507} {F8473508} {F8473509} {F8473510}
For more screenshots, please see D7430.
We use column or row headings here to bring more structure, and to give
the eye visual anchors which aid eye-scanning. The left-aligned
checkboxes likewise help with this. And we keep the adherence to the
center line, so the alignment matches up between the various buttons and
controls.
* Changes the property split percentage from 50/50% to 40/60%. This is
needed to give enough space for the checkboxes. But in most cases this
looks better anyway - see Transform panel. In some cases it simply
fills out the available space more efficently.
* Fix various hacks where we previously used manually defined splits.
When we did this, the alignment was never quite right, and the layout
code was a mess.
* Adds column headings to many places where a list of checkboxes all
share a common purpose or leading text.
* Add checkbox + value configurations various places where a checkbox
only serves to enable the value slider
* Removes most uses of grid flow layout. The grid flow layouts combine
poorly with column headings, and also they would mess alignment up
badly. The grid flow layouts also often made buttons and controls jump
around on the screen if you would just resize editors slightly,
causing visual confusion, making users lose their place. The logic for
at what time the list of items would re-flow was often flawed, jumping
to multiple columns too fast or too late - and frankly, the grid flow
layouts would often just look bad.
Maniphest Task: https://developer.blender.org/T65965
Differential Revision: https://developer.blender.org/D7430
Reviewed by: Brecht Van Lommel, Pablo Vazquez.
Most work here by William Reynish, few changes by Julian Eisel.
2020-04-17 16:54:03 +02:00
|
|
|
col = layout.column(align=False, heading="Overscan")
|
|
|
|
col.use_property_decorate = False
|
|
|
|
row = col.row(align=True)
|
|
|
|
sub = row.row(align=True)
|
|
|
|
sub.prop(props, "use_overscan", text="")
|
|
|
|
sub = sub.row(align=True)
|
|
|
|
sub.active = props.use_overscan
|
|
|
|
sub.prop(props, "overscan_size", text="")
|
|
|
|
row.prop_decorator(props, "overscan_size")
|
2019-02-28 21:53:14 +01:00
|
|
|
|
|
|
|
|
2018-07-11 11:43:56 +02:00
|
|
|
class RENDER_PT_eevee_hair(RenderButtonsPanel, Panel):
|
2018-05-29 11:20:37 +02:00
|
|
|
bl_label = "Hair"
|
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
|
|
|
COMPAT_ENGINES = {'BLENDER_EEVEE'}
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
scene = context.scene
|
|
|
|
rd = scene.render
|
|
|
|
|
2018-06-02 21:40:33 +02:00
|
|
|
layout.use_property_split = True
|
2018-10-31 17:23:43 +01:00
|
|
|
|
|
|
|
layout.prop(rd, "hair_type", expand=True)
|
2018-05-29 11:20:37 +02:00
|
|
|
layout.prop(rd, "hair_subdiv")
|
|
|
|
|
|
|
|
|
2020-02-19 01:44:52 +01:00
|
|
|
class RENDER_PT_eevee_performance(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Performance"
|
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
|
|
|
COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
scene = context.scene
|
|
|
|
rd = scene.render
|
|
|
|
|
|
|
|
layout.use_property_split = True
|
|
|
|
|
|
|
|
layout.prop(rd, "use_high_quality_normals")
|
|
|
|
|
|
|
|
|
2019-05-02 15:18:53 +02:00
|
|
|
class RENDER_PT_opengl_sampling(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Sampling"
|
|
|
|
COMPAT_ENGINES = {'BLENDER_WORKBENCH'}
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.use_property_split = True
|
|
|
|
layout.use_property_decorate = False # No animation.
|
|
|
|
|
|
|
|
scene = context.scene
|
|
|
|
props = scene.display
|
|
|
|
|
|
|
|
col = layout.column()
|
|
|
|
col.prop(props, "render_aa", text="Render")
|
2020-03-09 19:52:42 +01:00
|
|
|
col.prop(props, "viewport_aa", text="Viewport")
|
2019-05-02 15:18:53 +02:00
|
|
|
|
|
|
|
|
2018-07-11 11:43:56 +02:00
|
|
|
class RENDER_PT_opengl_film(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Film"
|
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
2018-11-26 19:00:01 +01:00
|
|
|
COMPAT_ENGINES = {'BLENDER_WORKBENCH'}
|
2018-07-11 11:43:56 +02:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.use_property_split = True
|
|
|
|
layout.use_property_decorate = False # No animation.
|
|
|
|
|
|
|
|
rd = context.scene.render
|
2019-05-16 17:03:16 +02:00
|
|
|
layout.prop(rd, "film_transparent", text="Transparent")
|
2018-07-11 11:43:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
class RENDER_PT_opengl_lighting(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Lighting"
|
2018-11-26 19:00:01 +01:00
|
|
|
COMPAT_ENGINES = {'BLENDER_WORKBENCH'}
|
2018-07-11 11:43:56 +02:00
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
VIEW3D_PT_shading_lighting.draw(self, context)
|
|
|
|
|
|
|
|
|
|
|
|
class RENDER_PT_opengl_color(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Color"
|
2018-11-26 19:00:01 +01:00
|
|
|
COMPAT_ENGINES = {'BLENDER_WORKBENCH'}
|
2018-07-11 11:43:56 +02:00
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
|
|
|
|
|
|
|
def draw(self, context):
|
2018-08-19 20:25:36 +02:00
|
|
|
VIEW3D_PT_shading_color._draw_color_type(self, context)
|
2018-07-11 11:43:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
class RENDER_PT_opengl_options(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Options"
|
2018-11-26 19:00:01 +01:00
|
|
|
COMPAT_ENGINES = {'BLENDER_WORKBENCH'}
|
2018-07-11 11:43:56 +02:00
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def poll(cls, context):
|
|
|
|
return (context.engine in cls.COMPAT_ENGINES)
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
VIEW3D_PT_shading_options.draw(self, context)
|
|
|
|
|
|
|
|
|
2018-11-03 05:12:45 +01:00
|
|
|
class RENDER_PT_simplify(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Simplify"
|
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
2018-11-26 19:00:01 +01:00
|
|
|
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}
|
2018-11-03 05:12:45 +01:00
|
|
|
|
|
|
|
def draw_header(self, context):
|
|
|
|
rd = context.scene.render
|
|
|
|
self.layout.prop(rd, "use_simplify", text="")
|
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class RENDER_PT_simplify_viewport(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Viewport"
|
|
|
|
bl_parent_id = "RENDER_PT_simplify"
|
2018-11-26 19:00:01 +01:00
|
|
|
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}
|
2018-11-03 05:12:45 +01:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.use_property_split = True
|
|
|
|
|
|
|
|
rd = context.scene.render
|
|
|
|
|
|
|
|
layout.active = rd.use_simplify
|
|
|
|
|
|
|
|
flow = layout.grid_flow(row_major=True, columns=0, even_columns=False, even_rows=False, align=True)
|
|
|
|
|
|
|
|
col = flow.column()
|
|
|
|
col.prop(rd, "simplify_subdivision", text="Max Subdivision")
|
|
|
|
|
|
|
|
col = flow.column()
|
|
|
|
col.prop(rd, "simplify_child_particles", text="Max Child Particles")
|
|
|
|
|
|
|
|
|
|
|
|
class RENDER_PT_simplify_render(RenderButtonsPanel, Panel):
|
|
|
|
bl_label = "Render"
|
|
|
|
bl_parent_id = "RENDER_PT_simplify"
|
2018-11-26 19:00:01 +01:00
|
|
|
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}
|
2018-11-03 05:12:45 +01:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
layout.use_property_split = True
|
|
|
|
|
|
|
|
rd = context.scene.render
|
|
|
|
|
|
|
|
layout.active = rd.use_simplify
|
|
|
|
|
|
|
|
flow = layout.grid_flow(row_major=True, columns=0, even_columns=False, even_rows=False, align=True)
|
|
|
|
|
|
|
|
col = flow.column()
|
|
|
|
col.prop(rd, "simplify_subdivision_render", text="Max Subdivision")
|
|
|
|
|
|
|
|
col = flow.column()
|
|
|
|
col.prop(rd, "simplify_child_particles_render", text="Max Child Particles")
|
|
|
|
|
|
|
|
|
2019-09-12 16:12:19 +02:00
|
|
|
class RENDER_PT_simplify_greasepencil(RenderButtonsPanel, Panel, GreasePencilSimplifyPanel):
|
2018-11-03 05:12:45 +01:00
|
|
|
bl_label = "Grease Pencil"
|
|
|
|
bl_parent_id = "RENDER_PT_simplify"
|
2019-09-12 16:19:43 +02:00
|
|
|
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME', 'BLENDER_CLAY', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}
|
2018-11-03 05:12:45 +01:00
|
|
|
bl_options = {'DEFAULT_CLOSED'}
|
|
|
|
|
|
|
|
|
2017-03-18 20:03:24 +11:00
|
|
|
classes = (
|
2017-10-16 17:15:03 -02:00
|
|
|
RENDER_PT_context,
|
2017-10-03 18:30:36 +02:00
|
|
|
RENDER_PT_eevee_sampling,
|
2018-11-02 02:21:35 +01:00
|
|
|
RENDER_PT_eevee_ambient_occlusion,
|
|
|
|
RENDER_PT_eevee_bloom,
|
|
|
|
RENDER_PT_eevee_depth_of_field,
|
2017-11-14 00:49:54 +01:00
|
|
|
RENDER_PT_eevee_subsurface_scattering,
|
2017-10-03 18:30:36 +02:00
|
|
|
RENDER_PT_eevee_screen_space_reflections,
|
2018-11-02 02:21:35 +01:00
|
|
|
RENDER_PT_eevee_motion_blur,
|
2017-10-03 18:30:36 +02:00
|
|
|
RENDER_PT_eevee_volumetric,
|
2018-10-31 17:23:43 +01:00
|
|
|
RENDER_PT_eevee_volumetric_lighting,
|
|
|
|
RENDER_PT_eevee_volumetric_shadows,
|
2020-02-19 01:44:52 +01:00
|
|
|
RENDER_PT_eevee_performance,
|
2018-11-02 02:21:35 +01:00
|
|
|
RENDER_PT_eevee_hair,
|
|
|
|
RENDER_PT_eevee_shadows,
|
|
|
|
RENDER_PT_eevee_indirect_lighting,
|
|
|
|
RENDER_PT_eevee_indirect_lighting_display,
|
|
|
|
RENDER_PT_eevee_film,
|
2019-05-02 15:18:53 +02:00
|
|
|
RENDER_PT_opengl_sampling,
|
2018-07-11 11:43:56 +02:00
|
|
|
RENDER_PT_opengl_lighting,
|
|
|
|
RENDER_PT_opengl_color,
|
|
|
|
RENDER_PT_opengl_options,
|
2018-11-02 02:21:35 +01:00
|
|
|
RENDER_PT_opengl_film,
|
|
|
|
RENDER_PT_color_management,
|
|
|
|
RENDER_PT_color_management_curves,
|
2018-11-03 05:12:45 +01:00
|
|
|
RENDER_PT_simplify,
|
|
|
|
RENDER_PT_simplify_viewport,
|
|
|
|
RENDER_PT_simplify_render,
|
|
|
|
RENDER_PT_simplify_greasepencil,
|
2017-03-18 20:03:24 +11:00
|
|
|
)
|
|
|
|
|
2011-04-04 10:13:04 +00:00
|
|
|
if __name__ == "__main__": # only for live edit.
|
2017-03-18 20:03:24 +11:00
|
|
|
from bpy.utils import register_class
|
|
|
|
for cls in classes:
|
|
|
|
register_class(cls)
|