From 2b787dcb98e042ad0dda4dc315ced54d383f76ec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vil=C3=A9m=20Duha?= <vilda.novak@gmail.com>
Date: Sat, 10 Aug 2019 19:23:11 +0200
Subject: [PATCH] BlenderKit: get rid of obligatory tags and work hours
 filling.

---
 blenderkit/ui_panels.py |  6 +++---
 blenderkit/upload.py    | 24 ++++++++++++------------
 2 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/blenderkit/ui_panels.py b/blenderkit/ui_panels.py
index 9cd37db46..ef95665b4 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 717e457e2..9d338803d 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
-- 
GitLab