[Bf-extensions-cvs] [27c29940] master: BlenderKit: place material downloaders at object center when clicking
Vilém Duha
noreply at git.blender.org
Mon Oct 5 12:28:45 CEST 2020
Commit: 27c2994094f5b634ee3c2ccfc40ce67bd3768695
Author: Vilém Duha
Date: Mon Oct 5 11:06:19 2020 +0200
Branches: master
https://developer.blender.org/rBA27c2994094f5b634ee3c2ccfc40ce67bd3768695
BlenderKit: place material downloaders at object center when clicking
===================================================================
M blenderkit/ui.py
===================================================================
diff --git a/blenderkit/ui.py b/blenderkit/ui.py
index 75313c3b..b6bbbd64 100644
--- a/blenderkit/ui.py
+++ b/blenderkit/ui.py
@@ -1626,6 +1626,8 @@ class AssetBarOperator(bpy.types.Operator):
if ao != None and not ao.is_library_indirect:
target_object = bpy.context.active_object.name
target_slot = bpy.context.active_object.active_material_index
+ #change snapped location for placing material downloader.
+ ui_props.snapped_location = bpy.context.active_object.location
else:
target_object = ''
target_slot = ''
More information about the Bf-extensions-cvs
mailing list