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-02-10 22:56:28 +0300
committerVilém Duha <vilda.novak@gmail.com>2020-02-10 22:56:28 +0300
commit3d9a13e0d50ee72605348f2276b287040336ef6b (patch)
treeb656fa516a155f103567a6abb13aa6f5ba96a5ef
parente0319c485080dec1dd3f6ff10aec89ed287c5636 (diff)
BlenderKit: fix material drag drop
was broken due to inverted conditiion
-rw-r--r--blenderkit/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/blenderkit/ui.py b/blenderkit/ui.py
index ffeaf4f6..b0753a08 100644
--- a/blenderkit/ui.py
+++ b/blenderkit/ui.py
@@ -1589,7 +1589,7 @@ class AssetBarOperator(bpy.types.Operator):
else:
# first, test if object can have material applied.
# TODO add other types here if droppable.
- if object is None or object.is_library_indirect and object.type == 'MESH':
+ if object is not None and not object.is_library_indirect and object.type == 'MESH':
target_object = object.name
# create final mesh to extract correct material slot
depsgraph = bpy.context.evaluated_depsgraph_get()