RenderCopySettings: fix missing 'properties as annotations' change for 2.8.
This commit is contained in:
parent
0a412d988c
commit
095b6435ee
|
@ -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 = (
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue