Blender Git Commits

Blender Git "temp-T80320-usd-hack-removal" branch commits.

September 1, 2020, 12:50 (GMT)
USD: move library initialisation from `main()` to USD module

Initialize the USD library when used (instead of at startup), so that
this can happen inside the IO/USD module. This makes calls to the USD
library local to Blender's USD code.

Note that failure to find the USD JSON files will now only be reported
when the USD exporter is used, and not on every startup of Blender.

This is the first step in cleaning up the way Blender patches and
initialises the USD library.

Manifest Task: https://developer.blender.org/T80320
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
By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2021