redchillipadi / ebuild-overlay

Ebuild for various packages not currently in the Gentoo tree
6 stars 2 forks source link

Saving a glTF file fails as libextern_draco.so cannot be found #1

Closed redchillipadi closed 5 years ago

redchillipadi commented 5 years ago

When saving a glTF file, blender is looking in the wrong directory for libextern_draco.so

Steps to reproduce the issue:

The log shows

Read prefs: /home/adrian/.config/blender/2.80/config/userpref.blend
'/usr/bin/2.80/python/lib/python3.7/site-packages/libextern_draco.so' does not exist, draco mesh compression not available
06:17:07 | INFO: Starting glTF 2.0 export
06:17:07 | INFO: Extracting primitive: Cube
06:17:07 | DEBUG: Adding primitive without splitting. Indices: 36 Vertices: 24
06:17:07 | INFO: Primitives created: 1
06:17:07 | INFO: Finished glTF 2.0 export in 0.015080451965332031 s

The libextern_draco.so is found at /usr/share/blender/2.80/python/lib/python3.7/site-packages/libextern_draco.so

redchillipadi commented 5 years ago

This is fixed by commit 71dc06ad5b30976cd4253f64c3ca811a08596718

According to https://docs.blender.org/manual/en/latest/advanced/blender_directory_layout.html the python installation directory can be stored in the LOCAL (/usr/bin) or SYSTEM (/usr/share/blender) directory. The existing code searched the LOCAL directory, but the library was stored under the SYSTEM directory.