Blender Git Loki

Git Commits -> Revision 063c248

March 19, 2021, 16:09 (GMT)
Fix race condition when multiple file/asset-lists are running at once

E.g. opening a file with an asset viewer and an Asset Browser could cause one
of them to not load its files properly. That is because there was only one
`wmJob` per scene so when the first one was done it would end the other one(s).
I think this would be a problem in master for the regular File Browser too.

Instead of setting the scene as owner of the job, use the file-list, so that
each file/asset-list gets its own job.

Commit Details:

Full Hash: 063c248cb7069985a437da27cdac7a0b18f45606
Parent Commit: 40ed613
Lines Changed: +26, -34

9 Modified Paths:

/source/blender/editors/asset/asset_list.cc (+1, -1) (Diff)
/source/blender/editors/include/ED_fileselect.h (+3, -7) (Diff)
/source/blender/editors/space_file/filelist.c (+5, -5) (Diff)
/source/blender/editors/space_file/filelist.h (+2, -2) (Diff)
/source/blender/editors/space_file/filesel.c (+7, -11) (Diff)
/source/blender/editors/space_file/file_draw.c (+1, -1) (Diff)
/source/blender/editors/space_file/file_ops.c (+4, -4) (Diff)
/source/blender/editors/space_file/space_file.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_space.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021