Commit: 82282f32fe852605ee3ddd2f7454de29094b8b31 Author: Michael A. Kowalski Date: Sat Oct 17 13:02:31 2020 -0400 Branches: usd-importer-T81257 https://developer.blender.org/rB82282f32fe852605ee3ddd2f7454de29094b8b31
USD importer: fixed traversal bug. Changed prim traversal predicate to exclude inactive prims. =================================================================== M source/blender/io/usd/import/usd_import_util.cc =================================================================== diff --git a/source/blender/io/usd/import/usd_import_util.cc b/source/blender/io/usd/import/usd_import_util.cc index a46bcaac705..6389fec0e28 100644 --- a/source/blender/io/usd/import/usd_import_util.cc +++ b/source/blender/io/usd/import/usd_import_util.cc @@ -347,15 +347,13 @@ void create_readers(const pxr::UsdPrim &prim, return; } - std::string prim_path = prim.GetPath().GetString(); - bool is_root = prim.GetTypeName().IsEmpty(); std::vector<UsdObjectReader *> child_readers; /* Recursively create readers for the child prims. */ pxr::UsdPrimSiblingRange child_prims = prim.GetFilteredChildren( - pxr::UsdTraverseInstanceProxies(pxr::UsdPrimAllPrimsPredicate)); + pxr::UsdTraverseInstanceProxies(pxr::UsdPrimDefaultPredicate)); for (const pxr::UsdPrim &child_prim : child_prims) { create_readers(child_prim, context, r_readers, child_readers); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs