From d96b6d38d28fa2ec3d2ba4d186d9e0a105e83d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vil=C3=A9m=20Duha?= <vilda.novak@gmail.com> Date: Mon, 12 Aug 2019 21:27:58 +0200 Subject: [PATCH] BlenderKit: get rid of other styles that aren't supported on the server. --- blenderkit/__init__.py | 8 ++++---- blenderkit/ui_panels.py | 4 ++-- blenderkit/upload.py | 16 ++++++++-------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/blenderkit/__init__.py b/blenderkit/__init__.py index 27754e829..45c6b84c4 100644 --- a/blenderkit/__init__.py +++ b/blenderkit/__init__.py @@ -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'), ) diff --git a/blenderkit/ui_panels.py b/blenderkit/ui_panels.py index d2d3e0275..9175bed4d 100644 --- a/blenderkit/ui_panels.py +++ b/blenderkit/ui_panels.py @@ -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') diff --git a/blenderkit/upload.py b/blenderkit/upload.py index e8183684e..6f2fad45a 100644 --- a/blenderkit/upload.py +++ b/blenderkit/upload.py @@ -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', -- GitLab