biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / misc / blender / draco.patch
blobdf6729c445ccadb80f7395525c231fbe53189e75
1 --- a/CMakeLists.txt
2 +++ b/CMakeLists.txt
3 @@ -898,11 +898,6 @@ set_and_warn_dependency(WITH_PYTHON WITH_CYCLES OFF)
4 set_and_warn_dependency(WITH_PYTHON WITH_DRACO OFF)
5 set_and_warn_dependency(WITH_PYTHON WITH_MOD_FLUID OFF)
7 -if(WITH_DRACO AND NOT WITH_PYTHON_INSTALL)
8 - message(STATUS "WITH_DRACO requires WITH_PYTHON_INSTALL to be ON, disabling WITH_DRACO for now")
9 - set(WITH_DRACO OFF)
10 -endif()
12 # enable boost for cycles, audaspace or i18n
13 # otherwise if the user disabled
15 --- a/scripts/addons_core/io_scene_gltf2/io/com/gltf2_io_draco_compression_extension.py
16 +++ b/scripts/addons_core/io_scene_gltf2/io/com/gltf2_io_draco_compression_extension.py
17 @@ -17,7 +17,7 @@ def dll_path() -> Path:
18 """
19 lib_name = 'extern_draco'
20 - blender_root = Path(bpy.app.binary_path).parent
21 + blender_root = Path(bpy.app.binary_path).parent.parent
22 - python_lib = Path('{v[0]}.{v[1]}/python/lib'.format(v=bpy.app.version))
23 + python_lib = Path('share/blender/{v[0]}.{v[1]}/python-ext/lib'.format(v=bpy.app.version))
24 python_version = 'python{v[0]}.{v[1]}'.format(v=sys.version_info)
26 path = os.environ.get('BLENDER_EXTERN_DRACO_LIBRARY_PATH')