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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
40b654f1
Commit
40b654f1
authored
Nov 25, 2014
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
pie menu: add toggle quadview to 'more' menu
also minor cleanup
parent
b83c1181
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui_pie_menus_official.py
+22
-24
22 additions, 24 deletions
ui_pie_menus_official.py
with
22 additions
and
24 deletions
ui_pie_menus_official.py
+
22
−
24
View file @
40b654f1
...
@@ -42,6 +42,7 @@ class VIEW3D_PIE_object_mode(Menu):
...
@@ -42,6 +42,7 @@ class VIEW3D_PIE_object_mode(Menu):
pie
=
layout
.
menu_pie
()
pie
=
layout
.
menu_pie
()
pie
.
operator_enum
(
"
OBJECT_OT_mode_set
"
,
"
mode
"
)
pie
.
operator_enum
(
"
OBJECT_OT_mode_set
"
,
"
mode
"
)
class
VIEW3D_PIE_view_more
(
Menu
):
class
VIEW3D_PIE_view_more
(
Menu
):
bl_label
=
"
More
"
bl_label
=
"
More
"
...
@@ -54,6 +55,7 @@ class VIEW3D_PIE_view_more(Menu):
...
@@ -54,6 +55,7 @@ class VIEW3D_PIE_view_more(Menu):
pie
.
operator
(
"
VIEW3D_OT_view_selected
"
)
pie
.
operator
(
"
VIEW3D_OT_view_selected
"
)
pie
.
operator
(
"
VIEW3D_OT_view_all
"
)
pie
.
operator
(
"
VIEW3D_OT_view_all
"
)
pie
.
operator
(
"
VIEW3D_OT_localview
"
)
pie
.
operator
(
"
VIEW3D_OT_localview
"
)
pie
.
operator
(
"
SCREEN_OT_region_quadview
"
)
class
VIEW3D_PIE_view
(
Menu
):
class
VIEW3D_PIE_view
(
Menu
):
...
@@ -145,18 +147,22 @@ class VIEW3D_PIE_snap(Menu):
...
@@ -145,18 +147,22 @@ class VIEW3D_PIE_snap(Menu):
addon_keymaps
=
[]
addon_keymaps
=
[]
classes
=
(
VIEW3D_manipulator_set
,
def
register
():
VIEW3D_PIE_object_mode
,
bpy
.
utils
.
register_class
(
VIEW3D_manipulator_set
)
VIEW3D_PIE_view
,
VIEW3D_PIE_view_more
,
VIEW3D_PIE_shade
,
VIEW3D_PIE_manipulator
,
VIEW3D_PIE_pivot
,
VIEW3D_PIE_snap
,
)
#register menus
bpy
.
utils
.
register_class
(
VIEW3D_PIE_object_mode
)
def
register
():
bpy
.
utils
.
register_class
(
VIEW3D_PIE_view
)
for
cls
in
classes
:
bpy
.
utils
.
register_class
(
VIEW3D_PIE_view_more
)
bpy
.
utils
.
register_class
(
cls
)
bpy
.
utils
.
register_class
(
VIEW3D_PIE_shade
)
bpy
.
utils
.
register_class
(
VIEW3D_PIE_manipulator
)
bpy
.
utils
.
register_class
(
VIEW3D_PIE_pivot
)
bpy
.
utils
.
register_class
(
VIEW3D_PIE_snap
)
wm
=
bpy
.
context
.
window_manager
wm
=
bpy
.
context
.
window_manager
...
@@ -179,15 +185,8 @@ def register():
...
@@ -179,15 +185,8 @@ def register():
def
unregister
():
def
unregister
():
bpy
.
utils
.
unregister_class
(
VIEW3D_manipulator_set
)
for
cls
in
classes
:
bpy
.
utils
.
unregister_class
(
cls
)
bpy
.
utils
.
unregister_class
(
VIEW3D_PIE_object_mode
)
bpy
.
utils
.
unregister_class
(
VIEW3D_PIE_view
)
bpy
.
utils
.
unregister_class
(
VIEW3D_PIE_view_more
)
bpy
.
utils
.
unregister_class
(
VIEW3D_PIE_shade
)
bpy
.
utils
.
unregister_class
(
VIEW3D_PIE_manipulator
)
bpy
.
utils
.
unregister_class
(
VIEW3D_PIE_pivot
)
bpy
.
utils
.
unregister_class
(
VIEW3D_PIE_snap
)
wm
=
bpy
.
context
.
window_manager
wm
=
bpy
.
context
.
window_manager
...
@@ -198,5 +197,4 @@ def unregister():
...
@@ -198,5 +197,4 @@ def unregister():
wm
.
keyconfigs
.
addon
.
keymaps
.
remove
(
km
)
wm
.
keyconfigs
.
addon
.
keymaps
.
remove
(
km
)
# clear the list
addon_keymaps
.
clear
()
del
addon_keymaps
[:]
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