@@ -33,7 +33,7 @@ BIFUSD_WARNING_DISABLE_MSC(4800)
3333#include < pxr/usd/usd/prim.h>
3434#include < pxr/usd/usd/stage.h>
3535
36- // / \todo BIFROST-6874 remove pxr ::Work_EnsureDetachedTaskProgress();
36+ // / \todo BIFROST-6874 remove PXR_NS ::Work_EnsureDetachedTaskProgress();
3737#include < pxr/base/work/detachedTask.h>
3838
3939BIFUSD_WARNING_POP
@@ -42,11 +42,11 @@ BIFUSD_WARNING_POP
4242
4343namespace {
4444
45- pxr ::UsdStage::InitialLoadSet GetPxrInitialLoadSet (
45+ PXR_NS ::UsdStage::InitialLoadSet GetPxrInitialLoadSet (
4646 BifrostUsd::InitialLoadSet load) {
4747 return load == BifrostUsd::InitialLoadSet::LoadAll
48- ? pxr ::UsdStage::InitialLoadSet::LoadAll
49- : pxr ::UsdStage::InitialLoadSet::LoadNone;
48+ ? PXR_NS ::UsdStage::InitialLoadSet::LoadAll
49+ : PXR_NS ::UsdStage::InitialLoadSet::LoadNone;
5050}
5151
5252} // namespace
@@ -55,36 +55,36 @@ namespace BifrostUsd {
5555
5656Stage::Stage ()
5757 : m_rootLayer(Amino::newClassPtr<Layer>()),
58- m_stage (pxr ::UsdStage::Open(m_rootLayer->m_layer)) {}
58+ m_stage (PXR_NS ::UsdStage::Open(m_rootLayer->m_layer)) {}
5959
6060Stage::Stage (Invalid) { assert (!isValid ()); }
6161
6262Stage::Stage (const Layer& rootLayer, const InitialLoadSet load)
6363 : m_rootLayer(Amino::newClassPtr<Layer>(rootLayer)),
6464 m_stage(
65- pxr ::UsdStage::Open (m_rootLayer->m_layer, GetPxrInitialLoadSet(load)))
65+ PXR_NS ::UsdStage::Open (m_rootLayer->m_layer, GetPxrInitialLoadSet(load)))
6666
6767{}
6868
6969Stage::Stage (const Layer& rootLayer,
70- const pxr ::UsdStagePopulationMask& mask,
70+ const PXR_NS ::UsdStagePopulationMask& mask,
7171 const InitialLoadSet load)
7272 : m_rootLayer(Amino::newClassPtr<Layer>(rootLayer)),
73- m_stage(pxr ::UsdStage::OpenMasked(
73+ m_stage(PXR_NS ::UsdStage::OpenMasked(
7474 m_rootLayer->m_layer, mask, GetPxrInitialLoadSet(load)))
7575
7676{}
7777
7878Stage::Stage (const Amino::String& filePath, const InitialLoadSet load)
7979 : m_rootLayer(Amino::newClassPtr<Layer>(filePath, " " )),
80- m_stage(pxr ::UsdStage::Open(m_rootLayer->m_layer,
80+ m_stage(PXR_NS ::UsdStage::Open(m_rootLayer->m_layer,
8181 GetPxrInitialLoadSet (load))) {}
8282
8383Stage::Stage (const Amino::String& filePath,
84- const pxr ::UsdStagePopulationMask& mask,
84+ const PXR_NS ::UsdStagePopulationMask& mask,
8585 const InitialLoadSet load)
8686 : m_rootLayer(Amino::newClassPtr<Layer>(filePath, " " )),
87- m_stage(pxr ::UsdStage::OpenMasked(
87+ m_stage(PXR_NS ::UsdStage::OpenMasked(
8888 m_rootLayer->m_layer, mask, GetPxrInitialLoadSet(load))) {}
8989
9090Stage::Stage (const Stage& other) : Stage(*other.m_rootLayer) {
@@ -101,7 +101,7 @@ Stage::Stage(const Stage& other) : Stage(*other.m_rootLayer) {
101101
102102Stage& Stage::operator =(const Stage& other) {
103103 m_rootLayer = Amino::newClassPtr<Layer>(*other.m_rootLayer );
104- m_stage = pxr ::UsdStage::Open (m_rootLayer->m_layer );
104+ m_stage = PXR_NS ::UsdStage::Open (m_rootLayer->m_layer );
105105
106106 // The newly created UsdStage has the root layer as its default EditTarget.
107107 // We can't just copy the m_editLayerIndex, but must set the desired
@@ -148,7 +148,7 @@ bool Stage::setEditLayerIndex(const int layerIndex,
148148 const size_t numLayers = subLayerPaths.size ();
149149 if (static_cast <size_t >(layerIndex) < numLayers) {
150150 // Find the sublayer
151- auto layer = pxr ::SdfLayer::FindOrOpen (subLayerPaths[layerIndex]);
151+ auto layer = PXR_NS ::SdfLayer::FindOrOpen (subLayerPaths[layerIndex]);
152152 if (layer) {
153153 m_stage->SetEditTarget (layer);
154154 m_editLayerIndex = layerIndex;
@@ -166,11 +166,11 @@ bool Stage::setEditLayerIndex(const int layerIndex,
166166 return false ;
167167}
168168
169- pxr ::UsdVariantSet Stage::getLastModifedVariantSet () const {
170- pxr ::UsdPrim variant_prim;
169+ PXR_NS ::UsdVariantSet Stage::getLastModifedVariantSet () const {
170+ PXR_NS ::UsdPrim variant_prim;
171171 if (this ->hasLastModifiedVariantSetPrim ()) {
172172 variant_prim = m_stage->GetPrimAtPath (
173- pxr ::SdfPath (this ->last_modified_variant_set_prim .c_str ()));
173+ PXR_NS ::SdfPath (this ->last_modified_variant_set_prim .c_str ()));
174174 }
175175 return variant_prim.GetVariantSet (
176176 this ->last_modified_variant_set_name .c_str ());
@@ -189,8 +189,8 @@ Amino::Ptr<BifrostUsd::Stage> Amino::createDefaultClass() {
189189 // Destructor of USD instances are lauching threads. This result in
190190 // a deadlock on windows when unloading the library (which destroys the
191191 // default constructed object held in static variables).
192- // / \todo BIFROST-6874 remove pxr ::Work_EnsureDetachedTaskProgress();
193- pxr ::Work_EnsureDetachedTaskProgress ();
192+ // / \todo BIFROST-6874 remove PXR_NS ::Work_EnsureDetachedTaskProgress();
193+ PXR_NS ::Work_EnsureDetachedTaskProgress ();
194194 return Amino::newClassPtr<BifrostUsd::Stage>();
195195}
196196AMINO_DEFINE_DEFAULT_CLASS (BifrostUsd::Stage);
0 commit comments