Blender Git Loki
Git Commits -> Revision 8a50f27
Revision 8a50f27 by Michael Kowalski (usd) July 29, 2021, 03:43 (GMT) |
USD Import: add cache file only if needed Fixed bug where a cache file was always created for the imported USD, even when the USD has no animation. Modified the logic to add a cache file only if a reader requires it. This is not only more efficient, but also avoids the problem where we can't overwrite the USD the cachefile is referencing because it has a pointer to the open stage for the lifetime of the scene. |
Commit Details:
Full Hash: 8a50f27cc2bdcab68ee98ee1281b73dd3690b8c6
Parent Commit: db240f1
Lines Changed: +130, -42
6 Modified Paths:
/source/blender/io/usd/intern/usd_capi_import.cc (+56, -16) (Diff)
/source/blender/io/usd/intern/usd_reader_geom.cc (+24, -8) (Diff)
/source/blender/io/usd/intern/usd_reader_geom.h (+9, -1) (Diff)
/source/blender/io/usd/intern/usd_reader_prim.h (+13, -5) (Diff)
/source/blender/io/usd/intern/usd_reader_xform.cc (+18, -11) (Diff)
/source/blender/io/usd/intern/usd_reader_xform.h (+10, -1) (Diff)
/source/blender/io/usd/intern/usd_reader_geom.cc (+24, -8) (Diff)
/source/blender/io/usd/intern/usd_reader_geom.h (+9, -1) (Diff)
/source/blender/io/usd/intern/usd_reader_prim.h (+13, -5) (Diff)
/source/blender/io/usd/intern/usd_reader_xform.cc (+18, -11) (Diff)
/source/blender/io/usd/intern/usd_reader_xform.h (+10, -1) (Diff)