Changeset View
Changeset View
Standalone View
Standalone View
object_edit_linked.py
| Context not available. | |||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return (settings["original_file"] != "") | return settings["original_file"] != "" | ||||
| def execute(self, context): | def execute(self, context): | ||||
| if self.use_autosave: | if self.use_autosave: | ||||
| Context not available. | |||||
| target.library is not None) or | target.library is not None) or | ||||
| context.active_object.library is not None): | context.active_object.library is not None): | ||||
| if (target is not None): | if target is not None: | ||||
| props = layout.operator("object.edit_linked", icon="LINK_BLEND", | props = layout.operator("object.edit_linked", icon="LINK_BLEND", | ||||
| text="Edit Library: %s" % target.name) | text="Edit Library: %s" % target.name) | ||||
| else: | else: | ||||
| Context not available. | |||||
| layout.prop(scene, "use_autosave") | layout.prop(scene, "use_autosave") | ||||
| layout.prop(scene, "use_instance") | layout.prop(scene, "use_instance") | ||||
| if (target is not None): | if target is not None: | ||||
| layout.label(text="Path: %s" % | layout.label(text="Path: %s" % | ||||
| target.library.filepath) | target.library.filepath) | ||||
| else: | else: | ||||
| Context not available. | |||||