BlenderKit: fix material drag drop

was broken due to inverted conditiion
This commit is contained in:
Vilém Duha 2020-02-10 20:56:28 +01:00
parent e0319c4850
commit 3d9a13e0d5
1 changed files with 1 additions and 1 deletions

View File

@ -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()