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>2020-12-30 16:23:06 +0300
committerVilém Duha <vilda.novak@gmail.com>2020-12-30 16:23:06 +0300
commit18b70f2fe4d06d52f8c1e7d35b272c52adea58aa (patch)
treec1b40060602c1475fd8e736b8c97a0fd224dae7b /blenderkit/ui_panels.py
parenteb514f2106defdccb0f6d4ce8ae8a254b23b844c (diff)
BlenderKit: upload displayName
This enables 2 names for assets - displayName is shown to user, but name is the one saved in the assets. 90% of time these will be the same, but when a user only updates the name of the asset, there is no more need to reupload because the name needed to be the same in the .blend file. also rename draw_callback_2d_search to draw_asset_bar
Diffstat (limited to 'blenderkit/ui_panels.py')
-rw-r--r--blenderkit/ui_panels.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/blenderkit/ui_panels.py b/blenderkit/ui_panels.py
index daa88f82..6cccf42a 100644
--- a/blenderkit/ui_panels.py
+++ b/blenderkit/ui_panels.py
@@ -122,6 +122,11 @@ def draw_upload_common(layout, props, asset_type, context):
optext = 'Upload %s' % asset_type.lower()
op = layout.operator("object.blenderkit_upload", text=optext, icon='EXPORT')
op.asset_type = asset_type
+ op.reupload = False
+ #make sure everything gets uploaded.
+ op.main_file = True
+ op.metadata = True
+ op.thumbnail = True
if props.asset_base_id != '':
op = layout.operator("object.blenderkit_upload", text='Reupload asset', icon='EXPORT')