[Bf-extensions-cvs] [caf4a305] master: BlenderKit: fix link to docs ans several small UI tweaks
Vilem Duha
noreply at git.blender.org
Mon Jun 24 21:30:19 CEST 2019
Commit: caf4a3058e6546d99e1394672683a0957a123ab4
Author: Vilem Duha
Date: Sun Jun 23 17:40:25 2019 +0200
Branches: master
https://developer.blender.org/rBAcaf4a3058e6546d99e1394672683a0957a123ab4
BlenderKit: fix link to docs ans several small UI tweaks
===================================================================
M blenderkit/paths.py
M blenderkit/ui_panels.py
===================================================================
diff --git a/blenderkit/paths.py b/blenderkit/paths.py
index 692987b4..552ccbbd 100644
--- a/blenderkit/paths.py
+++ b/blenderkit/paths.py
@@ -29,6 +29,7 @@ BLENDERKIT_PLANS = "https://www.blenderkit.com/plans/pricing/"
BLENDERKIT_MANUAL = "https://youtu.be/1hVgcQhIAo8"
BLENDERKIT_MODEL_UPLOAD_INSTRUCTIONS_URL = "https://www.blenderkit.com/docs/upload/"
BLENDERKIT_MATERIAL_UPLOAD_INSTRUCTIONS_URL = "https://www.blenderkit.com/docs/uploading-material/"
+BLENDERKIT_BRUSH_UPLOAD_INSTRUCTIONS_URL = "https://www.blenderkit.com/docs/uploading-brush/"
BLENDERKIT_LOGIN_URL = "https://www.blenderkit.com/accounts/login"
BLENDERKIT_OAUTH_LANDING_URL = "/oauth-landing/"
BLENDERKIT_SIGNUP_URL = "https://www.blenderkit.com/accounts/register"
diff --git a/blenderkit/ui_panels.py b/blenderkit/ui_panels.py
index ef89ddb0..c11ad6e3 100644
--- a/blenderkit/ui_panels.py
+++ b/blenderkit/ui_panels.py
@@ -92,6 +92,8 @@ def draw_upload_common(layout, props, asset_type, context):
op.url = paths.BLENDERKIT_MODEL_UPLOAD_INSTRUCTIONS_URL
if asset_type == 'MATERIAL':
op.url = paths.BLENDERKIT_MATERIAL_UPLOAD_INSTRUCTIONS_URL
+ if asset_type == 'BRUSH':
+ op.url = paths.BLENDERKIT_BRUSH_UPLOAD_INSTRUCTIONS_URL
row = layout.row(align=True)
if props.upload_state != '':
@@ -661,7 +663,7 @@ class VIEW3D_PT_blenderkit_unified(Panel):
return;
if ui_props.asset_type == 'MODEL':
- label_multiline(layout, "Uploaded models won't be available in b2.79", icon='ERROR')
+ # label_multiline(layout, "Uploaded models won't be available in b2.79", icon='ERROR')
if bpy.context.active_object is not None:
draw_panel_model_upload(self, context)
else:
@@ -670,7 +672,7 @@ class VIEW3D_PT_blenderkit_unified(Panel):
draw_panel_scene_upload(self, context)
elif ui_props.asset_type == 'MATERIAL':
- label_multiline(layout, "Uploaded materials won't be available in b2.79", icon='ERROR')
+ # label_multiline(layout, "Uploaded materials won't be available in b2.79", icon='ERROR')
if bpy.context.active_object is not None and bpy.context.active_object.active_material is not None:
draw_panel_material_upload(self, context)
More information about the Bf-extensions-cvs
mailing list