Edit linked library addon breaks relative links #67111
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#67111
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 10
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2
Blender Version
Broken:
version: 2.80 (sub 74), branch: master, commit date: 2019-07-11 13:50, hash: 06312c6d2db8
Short description of error
Edit linked library addon breaks relative links when toggling between files, when the child file also has linked materials.
Exact steps for others to reproduce the error
Based on attached files:
1- open scene/base.blend
It is linking an object from ..\obj\object.blend, and then that object is linking a material from..\Mat\mat.blend
If I edit any file from the File>Open menu, everything works well.
but If I use the Edit Linked Library addon, by:
2 - select "cubito" object and File>External Data>Edit Linked Library
3- then File>External Data>Return to original file (or corresponding hotkeys)
It breaks the relative links by turning
..\Mat\mat.blend into......\Mat\mat.blend
This is happening in several files I'm working on and in several blender 2.8 versions from a couple of weeks back.
This add-on has been amazingly useful, hope this is an easy fix!
bugLink.zip
Added subscriber: @FredericoMartins
#69446 was marked as duplicate of this issue
Added subscriber: @Harvester
I can confirm the above issue on a daily build of version 2.80 (Hash: 65168825e0b0) on my laptop (Win10 64bit, GeForce 1070). The add-on seems to loose the correct relative path to the linked material, after editing the linked object, apart from other minor issues (see below):
Traceback (most recent call last):
AttributeError: 'NoneType' object has no attribute 'view_layer'
The material file is being searched with the wrong relative path, while the linked object file's relative path is fine.
Added subscriber: @lichtwerk
Seems to be fine here on linux...
Unfortunately, with such scenario, it seems that even with the previous version 2.79b, when you edit the linked object using the Edit Linked Object add-on (ver. 0.8.1), and then return to the start file, it doesn't apply the correct relative path to the just edited file breaking links to external assets.
After several tests with Blender 2.79b, the above issue appears only when using relative paths, while it works fine with absolute paths. When using relative paths they get broken in the linked file being edited using the add-on.
Inside the add-on's code (line 218) there is a note about nested links which suggests to use another instance of Blender to edit the linked file, but even so the issue is still there.
Yep, tried it at home in linux and works well.. guess it is mostly a windows problem, will try during the week on several windows and macs at work.
Tried it on windows 10 (different computers) and windows 8, and it is buggy too.
But it does work on macOS (tested on Mojave) and Linux(Ubuntu) as mentioned before, so it seems to be a windows problem only :(
Thank you Federico for testing it on Windows too. So it's confirmed. Do you think it can be fixed? This is a crucial add-on but in this state it's not only useless but also dangerous if your are not aware of how it messes up with the paths in the edited linked file.
Added subscribers: @JasonvanGumster, @BrendonMurphy
confirming @JasonvanGumster are you interested here?
Added subscriber: @ideasfijas
Hello devs. I've noticed a recent update to this useful add-on (
ea945ab58d
). Are there any plans to tackle this quite annoying problem with linked libraries path being messed up? I would like to use it in production but I am not confident to try it in this state. Thank you for your attention.I don't have a full-on Windows machine to test this, but I think I should be able to try it in a VM. There's nothing in the add-on code that writes relative paths, so my suspicion is that maybe this has something to do with how the Remap Relative save option works in Blender itself when on Windows. I'll try and investigate this later today.
Hi Jason, thank you very much for having a look at this. I look forward to read about your discoveries on this add-on's behaviour.
I believe I have a fix in place (I realize now the the start of my commit message is a bit vague. oops). Please have a look and test it out.
Brilliant! I tested your patched script and it works fine with all these versions of Blender, without breaking the relative paths of linked objects and materials:
2.83.16 (Hash d553edeb7dbb)
2.92.0 (Hash 02948a2cab44)
2.93.0 (Hash d5c3bff6e774)
3.0 (Hash 7e841c797fb8)
I might test it a little more with some complex linking rig but it seems already to work properly.
Thank you very much for having fixed this very useful add-on.
Changed status from 'Confirmed' to: 'Resolved'
Excellent! In that case, I'm going to mark this as resolved. Let me know if you run into further issues.