mirror of
https://github.com/blender/blender
synced 2026-11-22 03:45:13 +03:00
Fix a bug in the file locking mechanism that's used to ensure only a single Blender instance syncs a remote asset library's listing. The file locking in Windows actually locks a specific byte offset. This offset MUST be the same in the unlock call. This was failing, because downloading a file tends to write to it. Adding `the_file.seek(0)` to both lock & unlock functions now ensures the same offset is (un)locked, regardless of what the caller does with the files. Pull Request: https://projects.blender.org/blender/blender/pulls/159063 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| locking.py | ||