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
09cee854
Commit
09cee854
authored
8 years ago
by
meta-androcto
Browse files
Options
Downloads
Patches
Plain Diff
view3d pies: fix for prefs conflicts
parent
c56b4261
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
space_view3d_pie_menus/__init__.py
+6
-6
6 additions, 6 deletions
space_view3d_pie_menus/__init__.py
with
6 additions
and
6 deletions
space_view3d_pie_menus/__init__.py
+
6
−
6
View file @
09cee854
...
...
@@ -91,8 +91,8 @@ def get_addon_preferences(name=''):
if
cls
:
prop
=
PointerProperty
(
type
=
cls
)
setattr
(
UIToolsPreferences
,
name
,
prop
)
bpy
.
utils
.
unregister_class
(
UI
ToolsPreferences
)
bpy
.
utils
.
register_class
(
UI
ToolsPreferences
)
bpy
.
utils
.
unregister_class
(
Pie
ToolsPreferences
)
bpy
.
utils
.
register_class
(
Pie
ToolsPreferences
)
return
getattr
(
addon_prefs
,
name
,
None
)
else
:
return
addon_prefs
...
...
@@ -122,7 +122,7 @@ def unregister_submodule(mod):
del
prefs
[
name
]
class
UI
ToolsPreferences
(
AddonPreferences
):
class
Pie
ToolsPreferences
(
AddonPreferences
):
bl_idname
=
__name__
def
draw
(
self
,
context
):
...
...
@@ -224,12 +224,12 @@ for mod in sub_modules:
description
=
info
.
get
(
'
description
'
,
''
),
update
=
gen_update
(
mod
),
)
setattr
(
UI
ToolsPreferences
,
'
use_
'
+
mod_name
,
prop
)
setattr
(
Pie
ToolsPreferences
,
'
use_
'
+
mod_name
,
prop
)
prop
=
BoolProperty
()
setattr
(
UI
ToolsPreferences
,
'
show_expanded_
'
+
mod_name
,
prop
)
setattr
(
Pie
ToolsPreferences
,
'
show_expanded_
'
+
mod_name
,
prop
)
classes
=
(
UI
ToolsPreferences
,
Pie
ToolsPreferences
,
)
...
...
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