Skip to content

Commit

Permalink
Merge pull request #2075 from AnimalLogic/csyshing/remove_tracking_se…
Browse files Browse the repository at this point in the history
…lectability_lock_prim

[al] Removed tracking selectability and lock metadata
  • Loading branch information
seando-adsk authored Feb 10, 2022
2 parents 885f7ab + cb7dfa7 commit f41faf9
Show file tree
Hide file tree
Showing 15 changed files with 169 additions and 992 deletions.
9 changes: 0 additions & 9 deletions plugin/al/lib/AL_USDMaya/AL/usdmaya/PluginRegister.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,6 @@ template <typename AFnPlugin> MStatus registerPlugin(AFnPlugin& plugin)
MGlobal::setOptionVarValue("AL_usdmaya_pushToPrim", true);
}

if (!MGlobal::optionVarExists("AL_usdmaya_ignoreLockPrims")) {
MGlobal::setOptionVarValue("AL_usdmaya_ignoreLockPrims", false);
}

MStatus status;

// gpuCachePluginMain used as an example.
Expand Down Expand Up @@ -345,11 +341,6 @@ template <typename AFnPlugin> MStatus registerPlugin(AFnPlugin& plugin)
"optionVar -iv \\\"AL_usdmaya_pushToPrim\\\" #1",
true,
MGlobal::optionVarIntValue("AL_usdmaya_pushToPrim"));
AL::maya::utils::MenuBuilder::addEntry(
"USD/Selection Ignore Lock Prims Enabled",
"optionVar -iv \\\"AL_usdmaya_ignoreLockPrims\\\" #1",
true,
MGlobal::optionVarIntValue("AL_usdmaya_ignoreLockPrims"));
CHECK_MSTATUS(AL::maya::utils::MenuBuilder::generatePluginUI(plugin, "AL_usdmaya"));
AL::usdmaya::Global::onPluginLoad();

Expand Down
148 changes: 0 additions & 148 deletions plugin/al/lib/AL_USDMaya/AL/usdmaya/SelectabilityDB.cpp

This file was deleted.

129 changes: 0 additions & 129 deletions plugin/al/lib/AL_USDMaya/AL/usdmaya/SelectabilityDB.h

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1037,11 +1037,8 @@ MStatus TranslatePrim::redoIt()
TF_DEBUG(ALUSDMAYA_COMMANDS).Msg("TranslatePrim::redoIt\n");
m_proxy->translatePrimPathsIntoMaya(newImportPaths, m_teardownPaths, tp);

// construct locks and selectability for imported prims
if (m_proxy->isLockPrimFeatureActive()) {
m_proxy->removeMetaData(m_teardownPaths);
m_proxy->processChangedMetaData(SdfPathVector(), newImportPaths);
}
// construct locks for imported prims
m_proxy->constructLockPrims();

if (!m_updatePaths.empty()) {

Expand Down
Loading

0 comments on commit f41faf9

Please sign in to comment.