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
54e52f64
Commit
54e52f64
authored
Sep 9, 2020
by
Ryan Inch
Browse files
Options
Downloads
Patches
Plain Diff
Collection Manager: Fix T80535. Task: T69577
parent
cdb0cd2d
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
object_collection_manager/__init__.py
+5
-4
5 additions, 4 deletions
object_collection_manager/__init__.py
object_collection_manager/qcd_init.py
+86
-83
86 additions, 83 deletions
object_collection_manager/qcd_init.py
with
91 additions
and
87 deletions
object_collection_manager/__init__.py
+
5
−
4
View file @
54e52f64
...
@@ -22,7 +22,7 @@ bl_info = {
...
@@ -22,7 +22,7 @@ bl_info = {
"
name
"
:
"
Collection Manager
"
,
"
name
"
:
"
Collection Manager
"
,
"
description
"
:
"
Manage collections and their objects
"
,
"
description
"
:
"
Manage collections and their objects
"
,
"
author
"
:
"
Ryan Inch
"
,
"
author
"
:
"
Ryan Inch
"
,
"
version
"
:
(
2
,
14
,
1
),
"
version
"
:
(
2
,
14
,
2
),
"
blender
"
:
(
2
,
80
,
0
),
"
blender
"
:
(
2
,
80
,
0
),
"
location
"
:
"
View3D - Object Mode (Shortcut - M)
"
,
"
location
"
:
"
View3D - Object Mode (Shortcut - M)
"
,
"
warning
"
:
''
,
# used for warning icon and text in addons panel
"
warning
"
:
''
,
# used for warning icon and text in addons panel
...
@@ -163,6 +163,7 @@ def register():
...
@@ -163,6 +163,7 @@ def register():
# create the global menu hotkey
# create the global menu hotkey
wm
=
bpy
.
context
.
window_manager
wm
=
bpy
.
context
.
window_manager
if
wm
.
keyconfigs
.
addon
:
# not present when started with --background
km
=
wm
.
keyconfigs
.
addon
.
keymaps
.
new
(
name
=
'
Object Mode
'
)
km
=
wm
.
keyconfigs
.
addon
.
keymaps
.
new
(
name
=
'
Object Mode
'
)
kmi
=
km
.
keymap_items
.
new
(
'
view3d.collection_manager
'
,
'
M
'
,
'
PRESS
'
)
kmi
=
km
.
keymap_items
.
new
(
'
view3d.collection_manager
'
,
'
M
'
,
'
PRESS
'
)
addon_keymaps
.
append
((
km
,
kmi
))
addon_keymaps
.
append
((
km
,
kmi
))
...
...
This diff is collapsed.
Click to expand it.
object_collection_manager/qcd_init.py
+
86
−
83
View file @
54e52f64
...
@@ -53,6 +53,7 @@ def register_qcd():
...
@@ -53,6 +53,7 @@ def register_qcd():
ui
.
preview_collections
[
"
icons
"
]
=
pcoll
ui
.
preview_collections
[
"
icons
"
]
=
pcoll
wm
=
bpy
.
context
.
window_manager
wm
=
bpy
.
context
.
window_manager
if
wm
.
keyconfigs
.
addon
:
# not present when started with --background
km
=
wm
.
keyconfigs
.
addon
.
keymaps
.
new
(
name
=
'
Object Mode
'
)
km
=
wm
.
keyconfigs
.
addon
.
keymaps
.
new
(
name
=
'
Object Mode
'
)
kmi
=
km
.
keymap_items
.
new
(
'
view3d.qcd_move_widget
'
,
'
V
'
,
'
PRESS
'
)
kmi
=
km
.
keymap_items
.
new
(
'
view3d.qcd_move_widget
'
,
'
V
'
,
'
PRESS
'
)
addon_qcd_keymaps
.
append
((
km
,
kmi
))
addon_qcd_keymaps
.
append
((
km
,
kmi
))
...
@@ -74,6 +75,7 @@ def register_qcd():
...
@@ -74,6 +75,7 @@ def register_qcd():
def
register_qcd_view_hotkeys
():
def
register_qcd_view_hotkeys
():
wm
=
bpy
.
context
.
window_manager
wm
=
bpy
.
context
.
window_manager
if
wm
.
keyconfigs
.
addon
:
# not present when started with --background
# create qcd hotkeys
# create qcd hotkeys
qcd_hotkeys
=
[
qcd_hotkeys
=
[
[
"
ONE
"
,
False
,
"
1
"
],
[
"
ONE
"
,
False
,
"
1
"
],
...
@@ -115,6 +117,7 @@ def register_qcd_view_hotkeys():
...
@@ -115,6 +117,7 @@ def register_qcd_view_hotkeys():
def
register_qcd_view_edit_mode_hotkeys
():
def
register_qcd_view_edit_mode_hotkeys
():
wm
=
bpy
.
context
.
window_manager
wm
=
bpy
.
context
.
window_manager
if
wm
.
keyconfigs
.
addon
:
# not present when started with --background
# create qcd hotkeys
# create qcd hotkeys
qcd_hotkeys
=
[
qcd_hotkeys
=
[
[
"
ONE
"
,
False
,
"
1
"
],
[
"
ONE
"
,
False
,
"
1
"
],
...
...
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