Page MenuHome

Fix T101618: Freeze when reloading a library in certain situation
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Oct 6 2022, 12:11 PM.

Details

Summary

Freeze happened when reloading a library while having an Object property
with a custom getter function defined in Python.

Just piggybacking on rB62eb21e3ce87, this just applies the same fix (use
the BPy_BEGIN/END_ALLOW_THREADS macros) to the places where the freeze
happens in the report situation.

All credit goes to @Brecht Van Lommel (brecht) and @Bastien Montagne (mont29).

Diff Detail

Repository
rB Blender

Event Timeline

Philipp Oeser (lichtwerk) requested review of this revision.Oct 6 2022, 12:11 PM
Philipp Oeser (lichtwerk) created this revision.
Brecht Van Lommel (brecht) requested changes to this revision.Oct 6 2022, 12:43 PM

Normally this should be added in the RNA code so they only affect calling functions from Python.

This revision now requires changes to proceed.Oct 6 2022, 12:43 PM
  • encapsulate the whole of WM_lib_reload with the THREADS macros in RNA (instead of the more distinct places in BKE_blendfile_library_relocate)
This revision is now accepted and ready to land.Oct 6 2022, 1:16 PM