Skip to content

Commit

Permalink
Merge pull request #2369 from Autodesk/donnels/MAYA-122048/turn_on_ma…
Browse files Browse the repository at this point in the history
…ya_ref

MAYA-122048: Turn on MayaRef for users
  • Loading branch information
seando-adsk authored May 19, 2022
2 parents dd195b4 + 81f5ace commit 85740ad
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/mayaUsd/ufe/UsdContextOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <pxr/base/plug/plugin.h>
#include <pxr/base/plug/registry.h>
#include <pxr/base/tf/diagnostic.h>
#include <pxr/base/tf/getenv.h>
#include <pxr/pxr.h>
#include <pxr/usd/sdf/fileFormat.h>
#include <pxr/usd/sdf/path.h>
Expand Down Expand Up @@ -786,16 +785,12 @@ Ufe::ContextOps::Items UsdContextOps::getItems(const Ufe::ContextOps::ItemPath&
#endif

#ifdef UFE_V3_FEATURES_AVAILABLE
// Temporary - hide some of the context menu items behind an
// env var until they are completed.
if (!fIsAGatewayType && PrimUpdaterManager::getInstance().canEditAsMaya(path())) {
items.emplace_back(kEditAsMayaItem, kEditAsMayaLabel, kEditAsMayaImage);
items.emplace_back(kDuplicateAsMayaItem, kDuplicateAsMayaLabel);
}
if (TfGetenvBool("MAYAUSD_ENABLE_ADD_MAYA_REFERENCE", false)) {
if (prim().GetTypeName() != TfToken("MayaReference")) {
items.emplace_back(kAddMayaReferenceItem, kAddMayaReferenceLabel);
}
if (prim().GetTypeName() != TfToken("MayaReference")) {
items.emplace_back(kAddMayaReferenceItem, kAddMayaReferenceLabel);
}
items.emplace_back(Ufe::ContextItem::kSeparator);
#endif
Expand Down

0 comments on commit 85740ad

Please sign in to comment.