BlenderKit: get rid of other styles that aren't supported on the server.

This commit is contained in:
Vilém Duha 2019-08-12 21:27:58 +02:00
parent 6af56bfabd
commit d96b6d38d2
3 changed files with 14 additions and 14 deletions

View File

@ -108,8 +108,8 @@ model_styles = (
('PAINTERLY', 'Painterly', 'hand painted with visible strokes, mostly for games'),
('LOWPOLY', 'Lowpoly', "Lowpoly art -don't mix up with polycount!"),
('ANIME', 'Anime', 'Anime style'),
('2D VECTOR', '2d Vector', '2d vector'),
('3D GRAPHICS', '3d Graphics', '3d graphics'),
('2D_VECTOR', '2d Vector', '2d vector'),
('3D_GRAPHICS', '3d Graphics', '3d graphics'),
('OTHER', 'Other', 'Other style'),
)
search_model_styles = (
@ -117,8 +117,8 @@ search_model_styles = (
('PAINTERLY', 'Painterly', 'hand painted with visible strokes, mostly for games'),
('LOWPOLY', 'Lowpoly', "Lowpoly art -don't mix up with polycount!"),
('ANIME', 'Anime', 'Anime style'),
('2D VECTOR', '2d Vector', '2d vector'),
('3D GRAPHICS', '3d Graphics', '3d graphics'),
('2D_VECTOR', '2d Vector', '2d vector'),
('3D_GRAPHICS', '3d Graphics', '3d graphics'),
('OTHER', 'Other', 'Other Style'),
('ANY', 'Any', 'Any Style'),
)

View File

@ -452,8 +452,8 @@ def draw_panel_material_upload(self, context):
prop_needed(layout, props, 'name', props.name)
layout.prop(props, 'description')
layout.prop(props, 'style')
if props.style == 'OTHER':
layout.prop(props, 'style_other')
# if props.style == 'OTHER':
# layout.prop(props, 'style_other')
# layout.prop(props, 'engine')
# if props.engine == 'OTHER':
# layout.prop(props, 'engine_other')

View File

@ -217,8 +217,8 @@ def get_upload_data(self, context, asset_type):
engines.append(props.engine_other.lower())
style = props.style.lower()
if style == 'OTHER':
style = props.style_other.lower()
# if style == 'OTHER':
# style = props.style_other.lower()
pl_dict = {'FINISHED': 'finished', 'TEMPLATE': 'template'}
@ -301,8 +301,8 @@ def get_upload_data(self, context, asset_type):
engines.append(props.engine_other.lower())
style = props.style.lower()
if style == 'OTHER':
style = props.style_other.lower()
# if style == 'OTHER':
# style = props.style_other.lower()
pl_dict = {'FINISHED': 'finished', 'TEMPLATE': 'template'}
@ -363,8 +363,8 @@ def get_upload_data(self, context, asset_type):
engine = props.engine_other
engine = engine.lower()
style = props.style.lower()
if style == 'OTHER':
style = props.style_other.lower()
# if style == 'OTHER':
# style = props.style_other.lower()
upload_data = {
"assetType": 'material',
@ -421,8 +421,8 @@ def get_upload_data(self, context, asset_type):
elif asset_type == 'TEXTURE':
style = props.style
if style == 'OTHER':
style = props.style_other
# if style == 'OTHER':
# style = props.style_other
upload_data = {
"assetType": 'texture',