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
4820186b
Commit
4820186b
authored
Nov 02, 2019
by
Ryan Inch
Browse files
Collection Manager: move location of remove op to far right. Task: T69577
parent
bc591c92
Changes
2
Hide whitespace changes
Inline
Side-by-side
collection_manager/__init__.py
View file @
4820186b
...
...
@@ -23,7 +23,7 @@ bl_info = {
"name"
:
"Collection Manager"
,
"description"
:
"Manage collections and their objects"
,
"author"
:
"Ryan Inch"
,
"version"
:
(
1
,
1
),
"version"
:
(
1
,
1
,
1
),
"blender"
:
(
2
,
80
,
0
),
"location"
:
"View3D - Object Mode"
,
"warning"
:
''
,
# used for warning icon and text in addons panel
...
...
collection_manager/ui.py
View file @
4820186b
...
...
@@ -122,12 +122,11 @@ class CollectionManager(Operator):
#context.scene.CMListIndex = 0
update_property_group
(
context
)
if
get_max_lvl
()
>
5
:
lvl
=
get_max_lvl
()
-
5
lvl
=
get_max_lvl
()
if
lvl
>
25
:
lvl
=
25
self
.
view_layer
=
context
.
view_layer
.
name
return
wm
.
invoke_popup
(
self
,
width
=
(
400
+
(
lvl
*
20
)))
...
...
@@ -143,7 +142,8 @@ class CM_UL_items(UIList):
laycol
=
layer_collections
[
item
.
name
]
collection
=
laycol
[
"ptr"
].
collection
row
=
layout
.
row
(
align
=
True
)
split
=
layout
.
split
(
factor
=
0.96
)
row
=
split
.
row
(
align
=
True
)
row
.
alignment
=
'LEFT'
# indent child items
...
...
@@ -220,11 +220,10 @@ class CM_UL_items(UIList):
icon
=
'RESTRICT_RENDER_ON'
if
laycol
[
"ptr"
].
collection
.
hide_render
else
'RESTRICT_RENDER_OFF'
row
.
operator
(
"view3d.disable_render_collection"
,
text
=
""
,
icon
=
icon
,
emboss
=
False
).
name
=
item
.
name
row
.
separator
()
#row.label(text="|")
row
.
separator
()
row
.
operator
(
"view3d.remove_collection"
,
text
=
""
,
icon
=
'X'
,
emboss
=
False
).
collection_name
=
item
.
name
rm_op
=
split
.
row
()
rm_op
.
alignment
=
'RIGHT'
rm_op
.
operator
(
"view3d.remove_collection"
,
text
=
""
,
icon
=
'X'
,
emboss
=
False
).
collection_name
=
item
.
name
def
filter_items
(
self
,
context
,
data
,
propname
):
...
...
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