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
a68a08a6
Commit
a68a08a6
authored
8 years ago
by
Bastien Montagne
Browse files
Options
Downloads
Patches
Plain Diff
RenderSettingsCopy: remove usage of register_module.
parent
8c3ebdde
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
render_copy_settings/__init__.py
+14
-13
14 additions, 13 deletions
render_copy_settings/__init__.py
render_copy_settings/operator.py
+6
-0
6 additions, 0 deletions
render_copy_settings/operator.py
render_copy_settings/panel.py
+6
-0
6 additions, 0 deletions
render_copy_settings/panel.py
with
26 additions
and
13 deletions
render_copy_settings/__init__.py
+
14
−
13
View file @
a68a08a6
...
...
@@ -21,7 +21,7 @@
bl_info
=
{
"
name
"
:
"
Copy Settings
"
,
"
author
"
:
"
Bastien Montagne
"
,
"
version
"
:
(
0
,
1
,
5
),
"
version
"
:
(
0
,
1
,
6
),
"
blender
"
:
(
2
,
65
,
9
),
"
location
"
:
"
Render buttons (Properties window)
"
,
"
description
"
:
"
Allows to copy a selection of render settings
"
...
...
@@ -90,27 +90,28 @@ class RenderCopySettings(bpy.types.PropertyGroup):
default
=
""
)
classes
=
(
RenderCopySettingsScene
,
RenderCopySettingsSetting
,
RenderCopySettings
,
)
+
operator
.
classes
+
panel
.
classes
def
register
():
# Register properties.
bpy
.
utils
.
register_class
(
RenderCopySettingsScene
)
bpy
.
utils
.
register_class
(
RenderCopySettingsSetting
)
bpy
.
utils
.
register_class
(
RenderCopySettings
)
for
cls
in
classes
:
bpy
.
utils
.
register_class
(
cls
)
bpy
.
types
.
Scene
.
render_copy_settings
=
PointerProperty
(
type
=
RenderCopySettings
)
bpy
.
utils
.
register_module
(
__name__
)
bpy
.
app
.
translations
.
register
(
__name__
,
translations
.
translations_dict
)
def
unregister
():
# Unregister properties.
bpy
.
utils
.
unregister_class
(
RenderCopySettingsScene
)
bpy
.
utils
.
unregister_class
(
RenderCopySettingsSetting
)
bpy
.
utils
.
unregister_class
(
RenderCopySettings
)
del
bpy
.
types
.
Scene
.
render_copy_settings
bpy
.
utils
.
unregister_module
(
__name__
)
bpy
.
app
.
translations
.
unregister
(
__name__
)
del
bpy
.
types
.
Scene
.
render_copy_settings
for
cls
in
classes
:
bpy
.
utils
.
unregister_class
(
cls
)
if
__name__
==
"
__main__
"
:
register
()
This diff is collapsed.
Click to expand it.
render_copy_settings/operator.py
+
6
−
0
View file @
a68a08a6
...
...
@@ -190,5 +190,11 @@ class RenderCopySettings(bpy.types.Operator):
return
{
'
FINISHED
'
}
classes
=
(
RenderCopySettingsPrepare
,
RenderCopySettingsPreset
,
RenderCopySettings
,
)
if
__name__
==
"
__main__
"
:
bpy
.
ops
.
scene
.
render_copy_settings
()
This diff is collapsed.
Click to expand it.
render_copy_settings/panel.py
+
6
−
0
View file @
a68a08a6
...
...
@@ -81,3 +81,9 @@ class RENDER_PT_copy_settings(bpy.types.Panel):
cp_sett
,
"
allowed_scenes_idx
"
,
rows
=
6
)
# XXX Grid is not nice currently...
else
:
layout
.
label
(
text
=
"
No Affectable Scenes!
"
,
icon
=
"
ERROR
"
)
classes
=
(
RENDER_UL_copy_settings
,
RENDER_PT_copy_settings
,
)
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