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:
authorPablo Vazquez <venomgfx@gmail.com>2019-09-18 15:45:26 +0300
committerPablo Vazquez <venomgfx@gmail.com>2019-09-18 15:45:26 +0300
commit11fdc251a15310aae74f7eb981e45d631d11e080 (patch)
tree1f8e88c0e4c109b1361f8207ac8139bed3ffda33 /object_edit_linked.py
parent154758b5a3d848a97f4194b31236e9fba14f487b (diff)
Edit Linked Library: Fix error checking for active collection.
Diffstat (limited to 'object_edit_linked.py')
-rw-r--r--object_edit_linked.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/object_edit_linked.py b/object_edit_linked.py
index 4d6ba312..80fd2bee 100644
--- a/object_edit_linked.py
+++ b/object_edit_linked.py
@@ -20,7 +20,7 @@
bl_info = {
"name": "Edit Linked Library",
"author": "Jason van Gumster (Fweeb), Bassam Kurdali, Pablo Vazquez, Rainer Trummer",
- "version": (0, 9, 1),
+ "version": (0, 9, 2),
"blender": (2, 80, 0),
"location": "File > External Data / View3D > Sidebar > Item Tab",
"description": "Allows editing of objects linked from a .blend library.",
@@ -180,6 +180,8 @@ class VIEW3D_PT_PanelLinkedEdit(bpy.types.Panel):
layout = self.layout
layout.use_property_split = True
layout.use_property_decorate = False
+
+ active_collection = context.active_object.instance_collection
icon = "OUTLINER_DATA_" + context.active_object.type
target = None
@@ -212,7 +214,7 @@ class VIEW3D_PT_PanelLinkedEdit(bpy.types.Panel):
elif settings["original_file"] != "":
- if scene.use_instance:
+ if scene.use_instance and active_collection:
layout.operator("wm.return_to_original",
text="Reload Current File",
icon="FILE_REFRESH").use_autosave = False