19
19
20
20
#include < Amino/Cpp/ClassDefine.h>
21
21
22
- // / \todo BIFROST-6874 remove PXR_NS::Work_EnsureDetachedTaskProgress();
23
- #include < pxr/base/work/detachedTask.h>
24
22
25
23
namespace BifrostUsd {
26
24
Attribute::Attribute (PXR_NS::UsdAttribute attribute, Amino::Ptr <Prim> prim)
@@ -29,24 +27,6 @@ Attribute::Attribute(PXR_NS::UsdAttribute attribute, Amino::Ptr<Prim> prim)
29
27
}
30
28
Attribute::~Attribute () = default ;
31
29
32
- // ------------------------------------------------------------------------------
33
- //
34
- namespace {
35
- Amino::Ptr <BifrostUsd::Attribute> createDefaultAttribute () {
36
- // Destructor of USD instances are lauching threads. This result in
37
- // a deadlock on windows when unloading the library (which destroys the
38
- // default constructed object held in static variables).
39
- // / \todo BIFROST-6874 remove PXR_NS::Work_EnsureDetachedTaskProgress();
40
- PXR_NS::Work_EnsureDetachedTaskProgress ();
41
- auto stage = Amino::newClassPtr<BifrostUsd::Stage>();
42
- auto pxr_prim = stage->get ().GetPseudoRoot ();
43
- auto prim = Amino::newClassPtr<BifrostUsd::Prim>(pxr_prim, stage);
44
- auto pxr_attr = pxr_prim.CreateAttribute (PXR_NS::TfToken (" " ),
45
- PXR_NS::SdfValueTypeName ());
46
- return Amino::newClassPtr<BifrostUsd::Attribute>(pxr_attr, prim);
47
- }
48
- } // namespace
49
30
} // namespace BifrostUsd
50
31
51
- AMINO_DEFINE_DEFAULT_CLASS (BifrostUsd::Attribute,
52
- BifrostUsd::createDefaultAttribute ());
32
+ AMINO_DEFINE_DEFAULT_CLASS (BifrostUsd::Attribute);
0 commit comments