[Bf-extensions-cvs] [11fdc251] master: Edit Linked Library: Fix error checking for active collection.
Pablo Vazquez
noreply at git.blender.org
Wed Sep 18 14:55:58 CEST 2019
Commit: 11fdc251a15310aae74f7eb981e45d631d11e080
Author: Pablo Vazquez
Date: Wed Sep 18 14:45:26 2019 +0200
Branches: master
https://developer.blender.org/rBA11fdc251a15310aae74f7eb981e45d631d11e080
Edit Linked Library: Fix error checking for active collection.
===================================================================
M object_edit_linked.py
===================================================================
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
More information about the Bf-extensions-cvs
mailing list