Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVilém Duha <vilda.novak@gmail.com>2019-08-10 20:23:11 +0300
committerVilém Duha <vilda.novak@gmail.com>2019-08-12 16:58:36 +0300
commit2b787dcb98e042ad0dda4dc315ced54d383f76ec (patch)
treea885e357ec341dd529602c2c2530f3e762025fbf
parent87d8e1d28ae0deb271540cf1487970de865d51f7 (diff)
BlenderKit: get rid of obligatory tags and work hours filling.
-rw-r--r--blenderkit/ui_panels.py6
-rw-r--r--blenderkit/upload.py24
2 files changed, 15 insertions, 15 deletions
diff --git a/blenderkit/ui_panels.py b/blenderkit/ui_panels.py
index 9cd37db4..ef95665b 100644
--- a/blenderkit/ui_panels.py
+++ b/blenderkit/ui_panels.py
@@ -188,7 +188,7 @@ def draw_panel_model_upload(self, context):
label_multiline(layout, text=props.thumbnail_generating_state)
layout.prop(props, 'description')
- prop_needed(layout, props, 'tags', props.tags)
+ layout.prop(props, 'tags')
# prop_needed(layout, props, 'style', props.style)
# prop_needed(layout, props, 'production_level', props.production_level)
layout.prop(props, 'style')
@@ -254,7 +254,7 @@ def draw_panel_scene_upload(self, context):
# label_multiline(layout, text = props.thumbnail_generating_state)
layout.prop(props, 'description')
- prop_needed(layout, props, 'tags', props.tags)
+ layout.prop(props, 'tags')
layout.prop(props, 'style')
layout.prop(props, 'production_level')
layout.prop(props, 'use_design_year')
@@ -456,7 +456,7 @@ def draw_panel_material_upload(self, context):
# layout.prop(props, 'engine')
# if props.engine == 'OTHER':
# layout.prop(props, 'engine_other')
- prop_needed(layout, props, 'tags', props.tags)
+ layout.prop(props, 'tags')
# layout.prop(props,'shaders')#TODO autofill on upload
# row = layout.row()
layout.prop(props, 'pbr')
diff --git a/blenderkit/upload.py b/blenderkit/upload.py
index 717e457e..9d338803 100644
--- a/blenderkit/upload.py
+++ b/blenderkit/upload.py
@@ -112,14 +112,14 @@ def get_missing_data_model(props):
if props.name == '':
write_to_report(props, 'Set model name')
- if props.tags == '':
- write_to_report(props, 'Write at least 3 tags')
+ # if props.tags == '':
+ # write_to_report(props, 'Write at least 3 tags')
if not props.has_thumbnail:
write_to_report(props, 'Add thumbnail:')
props.report += props.thumbnail_generating_state + '\n'
- if props.work_hours == 0.0:
- write_to_report(props, 'Fill in work hours')
+ # if props.work_hours == 0.0:
+ # write_to_report(props, 'Fill in work hours')
if props.engine == 'NONE':
write_to_report(props, 'Set at least one rendering/output engine')
if not any(props.dimensions):
@@ -132,14 +132,14 @@ def get_missing_data_scene(props):
if props.name == '':
write_to_report(props, 'Set scene name')
- if props.tags == '':
- write_to_report(props, 'Write at least 3 tags')
+ # if props.tags == '':
+ # write_to_report(props, 'Write at least 3 tags')
if not props.has_thumbnail:
write_to_report(props, 'Add thumbnail:')
props.report += props.thumbnail_generating_state + '\n'
- if props.work_hours == 0.0:
- write_to_report(props, 'Fill in work hours')
+ # if props.work_hours == 0.0:
+ # write_to_report(props, 'Fill in work hours')
if props.engine == 'NONE':
write_to_report(props, 'Set at least one rendering/output engine')
@@ -149,8 +149,8 @@ def get_missing_data_material(props):
autothumb.update_upload_material_preview(None, None)
if props.name == '':
write_to_report(props, 'Set material name')
- if props.tags == '':
- write_to_report(props, 'Write at least 3 tags')
+ # if props.tags == '':
+ # write_to_report(props, 'Write at least 3 tags')
if not props.has_thumbnail:
write_to_report(props, 'Add thumbnail:')
props.report += props.thumbnail_generating_state
@@ -163,8 +163,8 @@ def get_missing_data_brush(props):
props.report = ''
if props.name == '':
write_to_report(props, 'Set brush name')
- if props.tags == '':
- write_to_report(props, 'Write at least 3 tags')
+ # if props.tags == '':
+ # write_to_report(props, 'Write at least 3 tags')
if not props.has_thumbnail:
write_to_report(props, 'Add thumbnail:')
props.report += props.thumbnail_generating_state