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
|
2024-11-25 15:19:05 +00:00
|
|
|
index 75e23162c67..a386463a2a9 100644
|
2024-11-22 03:25:11 +00:00
|
|
|
--- a/scripts/addons_core/io_scene_gltf2/io/com/draco.py
|
|
|
|
+++ b/scripts/addons_core/io_scene_gltf2/io/com/draco.py
|
2024-11-25 15:19:05 +00:00
|
|
|
@@ -6,6 +6,7 @@ import os
|
|
|
|
import sys
|
|
|
|
from pathlib import Path
|
|
|
|
import bpy
|
|
|
|
+import site
|
|
|
|
|
|
|
|
|
|
|
|
def find_draco_dll_in_module(library_name: str) -> Path:
|
|
|
|
@@ -35,7 +36,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)
|
|
|
|
|