[Bf-extensions-cvs] [2b787dcb] master: BlenderKit: get rid of obligatory tags and work hours filling.
Vilém Duha
noreply at git.blender.org
Mon Aug 12 16:05:28 CEST 2019
Commit: 2b787dcb98e042ad0dda4dc315ced54d383f76ec
Author: Vilém Duha
Date: Sat Aug 10 19:23:11 2019 +0200
Branches: master
https://developer.blender.org/rBA2b787dcb98e042ad0dda4dc315ced54d383f76ec
BlenderKit: get rid of obligatory tags and work hours filling.
===================================================================
M blenderkit/ui_panels.py
M blenderkit/upload.py
===================================================================
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
More information about the Bf-extensions-cvs
mailing list