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
e2319230
Commit
e2319230
authored
7 years ago
by
Bastien Montagne
Browse files
Options
Downloads
Patches
Plain Diff
Fix for previous commit rBAc471c3765bfb0, sorry about the noise :|
parent
47f54fec
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
render_copy_settings/__init__.py
+3
-3
3 additions, 3 deletions
render_copy_settings/__init__.py
render_copy_settings/panel.py
+5
-5
5 additions, 5 deletions
render_copy_settings/panel.py
with
8 additions
and
8 deletions
render_copy_settings/__init__.py
+
3
−
3
View file @
e2319230
...
...
@@ -71,7 +71,7 @@ class RenderCopySettingsDataSetting(bpy.types.PropertyGroup):
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
=
RenderCopySettingsSetting
,
affected_settings
=
CollectionProperty
(
type
=
RenderCopySettings
Data
Setting
,
name
=
"
Affected Settings
"
,
description
=
"
The list of all available render settings
"
)
# XXX Unused, but needed for template_list…
...
...
@@ -79,7 +79,7 @@ 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 scene.
allowed_scenes
=
CollectionProperty
(
type
=
RenderCopySettingsScene
,
allowed_scenes
=
CollectionProperty
(
type
=
RenderCopySettings
Data
Scene
,
name
=
"
Allowed Scenes
"
,
description
=
"
The list all scenes in the file
"
)
# XXX Unused, but needed for template_list…
...
...
@@ -100,7 +100,7 @@ classes = (
def
register
():
for
cls
in
classes
:
bpy
.
utils
.
register_class
(
cls
)
bpy
.
types
.
Scene
.
render_copy_settings
=
PointerProperty
(
type
=
RenderCopySettings
)
bpy
.
types
.
Scene
.
render_copy_settings
=
PointerProperty
(
type
=
RenderCopySettings
Data
)
bpy
.
app
.
translations
.
register
(
__name__
,
translations
.
translations_dict
)
...
...
This diff is collapsed.
Click to expand it.
render_copy_settings/panel.py
+
5
−
5
View file @
e2319230
...
...
@@ -24,19 +24,19 @@ from . import presets
class
RENDER_UL_copy_settings
(
bpy
.
types
.
UIList
):
def
draw_item
(
self
,
context
,
layout
,
data
,
item
,
icon
,
active_data
,
active_propname
,
index
):
#assert(isinstance(item, (bpy.types.RenderCopySettingsScene, bpy.types.RenderCopySettingsSetting)))
#assert(isinstance(item, (bpy.types.RenderCopySettingsScene, bpy.types.RenderCopySettings
Data
Setting)))
if
self
.
layout_type
in
{
'
DEFAULT
'
,
'
COMPACT
'
}:
if
isinstance
(
item
,
bpy
.
types
.
RenderCopySettingsSetting
):
if
isinstance
(
item
,
bpy
.
types
.
RenderCopySettings
Data
Setting
):
layout
.
label
(
item
.
name
,
icon_value
=
icon
)
layout
.
prop
(
item
,
"
copy
"
,
text
=
""
)
else
:
#elif isinstance(item, bpy.types.RenderCopySettingsScene):
else
:
#elif isinstance(item, bpy.types.RenderCopySettings
Data
Scene):
layout
.
prop
(
item
,
"
allowed
"
,
text
=
item
.
name
,
toggle
=
True
)
elif
self
.
layout_type
in
{
'
GRID
'
}:
layout
.
alignment
=
'
CENTER
'
if
isinstance
(
item
,
bpy
.
types
.
RenderCopySettingsSetting
):
if
isinstance
(
item
,
bpy
.
types
.
RenderCopySettings
Data
Setting
):
layout
.
label
(
item
.
name
,
icon_value
=
icon
)
layout
.
prop
(
item
,
"
copy
"
,
text
=
""
)
else
:
#elif isinstance(item, bpy.types.RenderCopySettingsScene):
else
:
#elif isinstance(item, bpy.types.RenderCopySettings
Data
Scene):
layout
.
prop
(
item
,
"
allowed
"
,
text
=
item
.
name
,
toggle
=
True
)
...
...
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