Skip to content
Snippets Groups Projects
Commit 095b6435 authored by Bastien Montagne's avatar Bastien Montagne
Browse files

RenderCopySettings: fix missing 'properties as annotations' change for 2.8.

parent 0a412d98
No related branches found
No related tags found
No related merge requests found
...@@ -31,34 +31,34 @@ from bpy.props import ( ...@@ -31,34 +31,34 @@ from bpy.props import (
######################################################################################################################## ########################################################################################################################
class RenderCopySettingsDataScene(bpy.types.PropertyGroup): class RenderCopySettingsDataScene(bpy.types.PropertyGroup):
allowed = BoolProperty(default=True) allowed: BoolProperty(default=True)
class RenderCopySettingsDataSetting(bpy.types.PropertyGroup): class RenderCopySettingsDataSetting(bpy.types.PropertyGroup):
strid = StringProperty(default="") strid: StringProperty(default="")
copy = BoolProperty(default=False) copy: BoolProperty(default=False)
class RenderCopySettingsData(bpy.types.PropertyGroup): class RenderCopySettingsData(bpy.types.PropertyGroup):
# XXX: The consistency of this collection is delegated to the UI code. # XXX: The consistency of this collection is delegated to the UI code.
# It should only contain one element for each render setting. # It should only contain one element for each render setting.
affected_settings = CollectionProperty(type=RenderCopySettingsDataSetting, affected_settings: CollectionProperty(type=RenderCopySettingsDataSetting,
name="Affected Settings", name="Affected Settings",
description="The list of all available render settings") description="The list of all available render settings")
# XXX Unused, but needed for template_list… # XXX Unused, but needed for template_list…
affected_settings_idx = IntProperty() affected_settings_idx: IntProperty()
# XXX: The consistency of this collection is delegated to the UI code. # XXX: The consistency of this collection is delegated to the UI code.
# It should only contain one element for each scene. # It should only contain one element for each scene.
allowed_scenes = CollectionProperty(type=RenderCopySettingsDataScene, allowed_scenes: CollectionProperty(type=RenderCopySettingsDataScene,
name="Allowed Scenes", name="Allowed Scenes",
description="The list all scenes in the file") description="The list all scenes in the file")
# XXX Unused, but needed for template_list… # XXX Unused, but needed for template_list…
allowed_scenes_idx = IntProperty() allowed_scenes_idx: IntProperty()
filter_scene = StringProperty(name="Filter Scene", filter_scene: StringProperty(name="Filter Scene",
description="Regex to only affect scenes which name matches it", description="Regex to only affect scenes which name matches it",
default="") default="")
classes = ( classes = (
......
...@@ -127,9 +127,9 @@ class RenderCopySettingsOPPreset(bpy.types.Operator): ...@@ -127,9 +127,9 @@ class RenderCopySettingsOPPreset(bpy.types.Operator):
# Enable undo… # Enable undo…
bl_option = {'REGISTER', 'UNDO'} bl_option = {'REGISTER', 'UNDO'}
presets = EnumProperty(items=(p.rna_enum for p in presets.presets), presets: EnumProperty(items=(p.rna_enum for p in presets.presets),
default=set(), default=set(),
options={'ENUM_FLAG'}) options={'ENUM_FLAG'})
@staticmethod @staticmethod
def process_elements(settings, elts): def process_elements(settings, elts):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment