Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
blender
blender-addons-contrib
Commits
c4e727c0
Commit
c4e727c0
authored
Nov 04, 2019
by
Ryan Inch
Browse files
Collection Manager: Fix bug with sync selection. Task: T69577
Prevent syncing to the Master Collection when the popup is called.
parent
0e5b7c2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
collection_manager/__init__.py
View file @
c4e727c0
...
...
@@ -23,7 +23,7 @@ bl_info = {
"name"
:
"Collection Manager"
,
"description"
:
"Manage collections and their objects"
,
"author"
:
"Ryan Inch"
,
"version"
:
(
1
,
2
,
1
),
"version"
:
(
1
,
2
,
2
),
"blender"
:
(
2
,
80
,
0
),
"location"
:
"View3D - Object Mode (Shortcut - M)"
,
"warning"
:
''
,
# used for warning icon and text in addons panel
...
...
collection_manager/ui.py
View file @
c4e727c0
...
...
@@ -117,9 +117,7 @@ class CollectionManager(Operator):
#hideall_history.clear()
#disableviewall_history.clear()
#disablerenderall_history.clear()
#context.scene.CMListIndex = 0
update_property_group
(
context
)
lvl
=
get_max_lvl
()
...
...
@@ -130,9 +128,12 @@ class CollectionManager(Operator):
self
.
view_layer
=
context
.
view_layer
.
name
# sync selection in ui list with active layer collection
active_laycol_name
=
context
.
view_layer
.
active_layer_collection
.
name
active_laycol_row_index
=
layer_collections
[
active_laycol_name
][
"row_index"
]
context
.
scene
.
CMListIndex
=
active_laycol_row_index
try
:
active_laycol_name
=
context
.
view_layer
.
active_layer_collection
.
name
active_laycol_row_index
=
layer_collections
[
active_laycol_name
][
"row_index"
]
context
.
scene
.
CMListIndex
=
active_laycol_row_index
except
:
context
.
scene
.
CMListIndex
=
0
return
wm
.
invoke_popup
(
self
,
width
=
(
400
+
(
lvl
*
20
)))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment