PKGBUILDs/extra/blender/force-draco2.patch

14 lines
642 B
Diff
Raw Normal View History

2024-11-22 03:25:11 +00:00
diff --git a/scripts/addons_core/io_scene_gltf2/io/com/draco.py b/scripts/addons_core/io_scene_gltf2/io/com/draco.py
index 75e23162c67..a3cad997f73 100644
--- a/scripts/addons_core/io_scene_gltf2/io/com/draco.py
+++ b/scripts/addons_core/io_scene_gltf2/io/com/draco.py
@@ -35,7 +35,7 @@ def dll_path() -> Path:
2022-02-17 19:28:54 +00:00
python_lib = Path('{v[0]}.{v[1]}/python/lib'.format(v=bpy.app.version))
python_version = 'python{v[0]}.{v[1]}'.format(v=sys.version_info)
- path = os.environ.get('BLENDER_EXTERN_DRACO_LIBRARY_PATH')
2023-03-09 19:02:56 +00:00
+ path = f"{site.getsitepackages()[0]}/libextern_draco.so"
2024-11-22 03:25:11 +00:00
if path is not None:
return Path(path)