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
a889c00f
Commit
a889c00f
authored
4 years ago
by
Vilém Duha
Browse files
Options
Downloads
Patches
Plain Diff
BlenderKit: UI cleanup
move several props in search panel into filters subpanel.
parent
896eaa75
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
blenderkit/ui_panels.py
+31
-25
31 additions, 25 deletions
blenderkit/ui_panels.py
with
31 additions
and
25 deletions
blenderkit/ui_panels.py
+
31
−
25
View file @
a889c00f
...
...
@@ -345,9 +345,9 @@ def draw_panel_model_search(self, context):
if
props
.
report
==
'
You need Full plan to get this item.
'
:
layout
.
operator
(
"
wm.url_open
"
,
text
=
"
Get Full plan
"
,
icon
=
'
URL
'
).
url
=
paths
.
BLENDERKIT_PLANS
layout
.
prop
(
props
,
"
search_style
"
)
layout
.
prop
(
props
,
"
own_only
"
)
layout
.
prop
(
props
,
"
free_only
"
)
#
layout.prop(props, "search_style")
#
layout.prop(props, "own_only")
#
layout.prop(props, "free_only")
# if props.search_style == 'OTHER':
# layout.prop(props, "search_style_other")
...
...
@@ -669,7 +669,6 @@ def draw_panel_material_search(self, context):
row
=
layout
.
row
()
row
.
prop
(
props
,
"
search_keywords
"
,
text
=
""
,
icon
=
'
VIEWZOOM
'
)
draw_assetbar_show_hide
(
row
,
props
)
layout
.
prop
(
props
,
"
own_only
"
)
utils
.
label_multiline
(
layout
,
text
=
props
.
report
)
# layout.prop(props, 'search_style')F
...
...
@@ -775,36 +774,41 @@ class VIEW3D_PT_blenderkit_advanced_model_search(Panel):
# if props.search_engine == 'OTHER':
# layout.prop(props, "search_engine_keyword")
# AGE
layout
.
prop
(
props
,
"
search_condition
"
,
text
=
'
Condition
'
)
# , text ='condition of object new/old e.t.c.')
layout
.
prop
(
props
,
"
own_only
"
)
layout
.
prop
(
props
,
"
free_only
"
)
layout
.
prop
(
props
,
"
search_style
"
)
# DESIGN YEAR
layout
.
prop
(
props
,
"
search_design_year
"
,
text
=
'
d
esigned in
( min - max )
'
)
layout
.
prop
(
props
,
"
search_design_year
"
,
text
=
'
D
esigned in
Year
'
)
if
props
.
search_design_year
:
row
=
layout
.
row
(
align
=
True
)
row
.
prop
(
props
,
"
search_design_year_min
"
,
text
=
'
m
in
'
)
row
.
prop
(
props
,
"
search_design_year_max
"
,
text
=
'
m
ax
'
)
row
.
prop
(
props
,
"
search_design_year_min
"
,
text
=
'
M
in
'
)
row
.
prop
(
props
,
"
search_design_year_max
"
,
text
=
'
M
ax
'
)
# POLYCOUNT
layout
.
prop
(
props
,
"
search_polycount
"
,
text
=
'
Poly
c
ount
in ( min - max )
'
)
layout
.
prop
(
props
,
"
search_polycount
"
,
text
=
'
Poly
C
ount
'
)
if
props
.
search_polycount
:
row
=
layout
.
row
(
align
=
True
)
row
.
prop
(
props
,
"
search_polycount_min
"
,
text
=
'
m
in
'
)
row
.
prop
(
props
,
"
search_polycount_max
"
,
text
=
'
m
ax
'
)
row
.
prop
(
props
,
"
search_polycount_min
"
,
text
=
'
M
in
'
)
row
.
prop
(
props
,
"
search_polycount_max
"
,
text
=
'
M
ax
'
)
# TEXTURE RESOLUTION
layout
.
prop
(
props
,
"
search_texture_resolution
"
,
text
=
'
t
exture
r
esolution
( min - max )
'
)
layout
.
prop
(
props
,
"
search_texture_resolution
"
,
text
=
'
T
exture
R
esolution
s
'
)
if
props
.
search_texture_resolution
:
row
=
layout
.
row
(
align
=
True
)
row
.
prop
(
props
,
"
search_texture_resolution_min
"
,
text
=
'
m
in
'
)
row
.
prop
(
props
,
"
search_texture_resolution_max
"
,
text
=
'
m
ax
'
)
row
.
prop
(
props
,
"
search_texture_resolution_min
"
,
text
=
'
M
in
'
)
row
.
prop
(
props
,
"
search_texture_resolution_max
"
,
text
=
'
M
ax
'
)
# FILE SIZE
layout
.
prop
(
props
,
"
search_file_size
"
,
text
=
'
File
s
ize (
min - max
MB)
'
)
layout
.
prop
(
props
,
"
search_file_size
"
,
text
=
'
File
S
ize (MB)
'
)
if
props
.
search_file_size
:
row
=
layout
.
row
(
align
=
True
)
row
.
prop
(
props
,
"
search_file_size_min
"
,
text
=
'
min
'
)
row
.
prop
(
props
,
"
search_file_size_max
"
,
text
=
'
max
'
)
row
.
prop
(
props
,
"
search_file_size_min
"
,
text
=
'
Min
'
)
row
.
prop
(
props
,
"
search_file_size_max
"
,
text
=
'
Max
'
)
# AGE
layout
.
prop
(
props
,
"
search_condition
"
,
text
=
'
Condition
'
)
# , text ='condition of object new/old e.t.c.')
# layout.prop(props, "search_procedural", expand=True)
# ADULT
...
...
@@ -833,24 +837,26 @@ class VIEW3D_PT_blenderkit_advanced_material_search(Panel):
layout
=
self
.
layout
layout
.
separator
()
layout
.
label
(
text
=
'
texture types
'
)
layout
.
prop
(
props
,
"
own_only
"
)
layout
.
label
(
text
=
'
Texture:
'
)
col
=
layout
.
column
()
col
.
prop
(
props
,
"
search_procedural
"
,
expand
=
True
)
if
props
.
search_procedural
==
'
TEXTURE_BASED
'
:
# TEXTURE RESOLUTION
layout
.
prop
(
props
,
"
search_texture_resolution
"
,
text
=
'
t
exture
r
esolution
( min - max )
'
)
layout
.
prop
(
props
,
"
search_texture_resolution
"
,
text
=
'
T
exture
R
esolution
'
)
if
props
.
search_texture_resolution
:
row
=
layout
.
row
(
align
=
True
)
row
.
prop
(
props
,
"
search_texture_resolution_min
"
,
text
=
'
m
in
'
)
row
.
prop
(
props
,
"
search_texture_resolution_max
"
,
text
=
'
m
ax
'
)
row
.
prop
(
props
,
"
search_texture_resolution_min
"
,
text
=
'
M
in
'
)
row
.
prop
(
props
,
"
search_texture_resolution_max
"
,
text
=
'
M
ax
'
)
# FILE SIZE
layout
.
prop
(
props
,
"
search_file_size
"
,
text
=
'
File size (
min - max
MB)
'
)
layout
.
prop
(
props
,
"
search_file_size
"
,
text
=
'
File size (MB)
'
)
if
props
.
search_file_size
:
row
=
layout
.
row
(
align
=
True
)
row
.
prop
(
props
,
"
search_file_size_min
"
,
text
=
'
m
in
'
)
row
.
prop
(
props
,
"
search_file_size_max
"
,
text
=
'
m
ax
'
)
row
.
prop
(
props
,
"
search_file_size_min
"
,
text
=
'
M
in
'
)
row
.
prop
(
props
,
"
search_file_size_max
"
,
text
=
'
M
ax
'
)
class
VIEW3D_PT_blenderkit_categories
(
Panel
):
...
...
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