Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
095b6435
Commit
095b6435
authored
6 years ago
by
Bastien Montagne
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
render_copy_settings/data.py
+14
-14
14 additions, 14 deletions
render_copy_settings/data.py
render_copy_settings/operator.py
+3
-3
3 additions, 3 deletions
render_copy_settings/operator.py
with
17 additions
and
17 deletions
render_copy_settings/data.py
+
14
−
14
View file @
095b6435
...
@@ -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
=
(
...
...
This diff is collapsed.
Click to expand it.
render_copy_settings/operator.py
+
3
−
3
View file @
095b6435
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment