Poly-Haven / polyhavenassets

A Blender add-on to integrate our assets natively in the asset browser
GNU General Public License v3.0
312 stars 21 forks source link

Maintain functionality even after blend file/library is moved #115

Open gregzaal opened 6 months ago

gregzaal commented 6 months ago

Right now we use asset.library_weak_reference to get the path and determine if a datablock is an asset or not. This is not entirely always reliable and can cause strange behavior especially when the blend file or library itself is relocated.

Perhaps there's a better way to keep track of our assets (e.g. custom property) and maintain the ability to do things like resolution switching even after the user has moved their library or when the current file was moved in the OS and relative paths are no longer correct.