Blender Git Loki

Git Commits -> Revision ba15792

September 1, 2020, 12:50 (GMT)
USD: remove library initialisation hack

Remove the hack for library initialisation; this is no longer necessary
as the required information can be passed to the USD library after its
static initialisers have run.

This means that USD's static initialisers will not be able to find the
USD plugin files. This is fine, as Blender now provides it with the
correct path before the first use of the library.

The removed hack was two-fold. It consisted of patching the USD library
to add a function, and calling that function from Blender. Now with that
function call removed from Blender's code, everything will keep working
regardless of whether the USD library is still patched or not. This'll
make bisecting things in the future a bit easier.

Manifest Task: https://developer.blender.org/T80320

Commit Details:

Full Hash: ba157924eb19234a09a5207d5ae8dacf18c62525
Parent Commit: 17a3ce7
Lines Changed: +17, -93

3 Modified Paths:

/build_files/build_environment/patches/usd.diff (+0, -71) (Diff)
/source/blender/io/usd/intern/usd_capi.cc (+4, -12) (Diff)
/source/blender/io/usd/tests/usd_stage_creation_test.cc (+13, -10) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021