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

This commit is contained in:
Bastien Montagne 2018-11-14 17:24:42 +01:00
parent 0a412d988c
commit 095b6435ee
2 changed files with 17 additions and 17 deletions

View File

@ -31,34 +31,34 @@ from bpy.props import (
########################################################################################################################
class RenderCopySettingsDataScene(bpy.types.PropertyGroup):
allowed = BoolProperty(default=True)
allowed: BoolProperty(default=True)
class RenderCopySettingsDataSetting(bpy.types.PropertyGroup):
strid = StringProperty(default="")
copy = BoolProperty(default=False)
strid: StringProperty(default="")
copy: BoolProperty(default=False)
class RenderCopySettingsData(bpy.types.PropertyGroup):
# XXX: The consistency of this collection is delegated to the UI code.
# It should only contain one element for each render setting.
affected_settings = CollectionProperty(type=RenderCopySettingsDataSetting,
name="Affected Settings",
description="The list of all available render settings")
affected_settings: CollectionProperty(type=RenderCopySettingsDataSetting,
name="Affected Settings",
description="The list of all available render settings")
# 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.
# It should only contain one element for each scene.
allowed_scenes = CollectionProperty(type=RenderCopySettingsDataScene,
name="Allowed Scenes",
description="The list all scenes in the file")
allowed_scenes: CollectionProperty(type=RenderCopySettingsDataScene,
name="Allowed Scenes",
description="The list all scenes in the file")
# XXX Unused, but needed for template_list…
allowed_scenes_idx = IntProperty()
allowed_scenes_idx: IntProperty()
filter_scene = StringProperty(name="Filter Scene",
description="Regex to only affect scenes which name matches it",
default="")
filter_scene: StringProperty(name="Filter Scene",
description="Regex to only affect scenes which name matches it",
default="")
classes = (

View File

@ -127,9 +127,9 @@ class RenderCopySettingsOPPreset(bpy.types.Operator):
# Enable undo…
bl_option = {'REGISTER', 'UNDO'}
presets = EnumProperty(items=(p.rna_enum for p in presets.presets),
default=set(),
options={'ENUM_FLAG'})
presets: EnumProperty(items=(p.rna_enum for p in presets.presets),
default=set(),
options={'ENUM_FLAG'})
@staticmethod
def process_elements(settings, elts):