diff --git a/blenderkit/__init__.py b/blenderkit/__init__.py index 27754e8298b1801dd1911d3a6ee5539905ca3f60..45c6b84c442c8171b75e11bacfe3dbfc80dcc981 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 d2d3e0275b79e52d38908e130ec378724dc47936..9175bed4d4e1b91da7b531c06dba8cffbdac71a1 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 e8183684eb34cb80886ee6cb036b3454708a3968..6f2fad45a54abca2fe8bff706f442c8e1fbd018f 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',