Skip to content

Commit

Permalink
Merge branch 'dev' into csyshing/fix_transform_chain_dead_loop_issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhicheng Ye authored and Zhicheng Ye committed Apr 5, 2022
2 parents 6ce6d10 + 7ee36d7 commit 2732123
Show file tree
Hide file tree
Showing 49 changed files with 152 additions and 359 deletions.
4 changes: 0 additions & 4 deletions lib/mayaUsd/fileio/jobs/jobArgs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,6 @@ UsdMayaJobImportArgs::UsdMayaJobImportArgs(
, importInstances(_Boolean(userArgs, UsdMayaJobImportArgsTokens->importInstances))
, useAsAnimationCache(_Boolean(userArgs, UsdMayaJobImportArgsTokens->useAsAnimationCache))
, importWithProxyShapes(importWithProxyShapes)
, pullImport(_Boolean(userArgs, UsdMayaJobImportArgsTokens->pullImport))
, timeInterval(timeInterval)
, chaserNames(_Vector<std::string>(userArgs, UsdMayaJobImportArgsTokens->chaser))
, allChaserArgs(_ChaserArgs(userArgs, UsdMayaJobImportArgsTokens->chaserArgs))
Expand Down Expand Up @@ -1123,7 +1122,6 @@ const VtDictionary& UsdMayaJobImportArgs::GetDefaultDictionary()
d[UsdMayaJobImportArgsTokens->importInstances] = true;
d[UsdMayaJobImportArgsTokens->importUSDZTextures] = false;
d[UsdMayaJobImportArgsTokens->importUSDZTexturesFilePath] = "";
d[UsdMayaJobImportArgsTokens->pullImport] = false;
d[UsdMayaJobImportArgsTokens->useAsAnimationCache] = false;
d[UsdMayaJobExportArgsTokens->chaser] = std::vector<VtValue>();
d[UsdMayaJobExportArgsTokens->chaserArgs] = std::vector<VtValue>();
Expand Down Expand Up @@ -1199,7 +1197,6 @@ const VtDictionary& UsdMayaJobImportArgs::GetGuideDictionary()
d[UsdMayaJobImportArgsTokens->importInstances] = _boolean;
d[UsdMayaJobImportArgsTokens->importUSDZTextures] = _boolean;
d[UsdMayaJobImportArgsTokens->importUSDZTexturesFilePath] = _string;
d[UsdMayaJobImportArgsTokens->pullImport] = _boolean;
d[UsdMayaJobImportArgsTokens->useAsAnimationCache] = _boolean;
d[UsdMayaJobExportArgsTokens->chaser] = _stringVector;
d[UsdMayaJobExportArgsTokens->chaserArgs] = _stringTripletVector;
Expand Down Expand Up @@ -1285,7 +1282,6 @@ std::ostream& operator<<(std::ostream& out, const UsdMayaJobImportArgs& importAr
<< "importInstances: " << TfStringify(importArgs.importInstances) << std::endl
<< "importUSDZTextures: " << TfStringify(importArgs.importUSDZTextures) << std::endl
<< "importUSDZTexturesFilePath: " << TfStringify(importArgs.importUSDZTexturesFilePath)
<< "pullImport: " << TfStringify(importArgs.pullImport) << std::endl
<< std::endl
<< "timeInterval: " << importArgs.timeInterval << std::endl
<< "useAsAnimationCache: " << TfStringify(importArgs.useAsAnimationCache) << std::endl
Expand Down
2 changes: 0 additions & 2 deletions lib/mayaUsd/fileio/jobs/jobArgs.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ TF_DECLARE_PUBLIC_TOKENS(
(importInstances) \
(importUSDZTextures) \
(importUSDZTexturesFilePath) \
(pullImport) \
/* assemblyRep values */ \
(Collapsed) \
(Full) \
Expand Down Expand Up @@ -318,7 +317,6 @@ struct UsdMayaJobImportArgs
const bool importInstances;
const bool useAsAnimationCache;
const bool importWithProxyShapes;
const bool pullImport;
/// The interval over which to import animated data.
/// An empty interval (<tt>GfInterval::IsEmpty()</tt>) means that no
/// animated (time-sampled) data should be imported.
Expand Down
8 changes: 1 addition & 7 deletions lib/mayaUsd/fileio/jobs/readJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,7 @@ bool UsdMaya_ReadJob::Read(std::vector<MDagPath>* addedDagPaths)
} else {
UsdStageCacheContext stageCacheContext(UsdMayaStageCache::Get(
mImportData.stageInitialLoadSet() == UsdStage::InitialLoadSet::LoadAll));

if (mArgs.pullImport)
// During a pullImport the sessionLayer is not used to request the proper stage.
// We don't want a stage with criteria on the variant selection.
stage = UsdStage::Open(rootLayer, mImportData.stageInitialLoadSet());
else
stage = UsdStage::Open(rootLayer, sessionLayer, mImportData.stageInitialLoadSet());
stage = UsdStage::Open(rootLayer, sessionLayer, mImportData.stageInitialLoadSet());
}
if (!stage) {
return false;
Expand Down
4 changes: 1 addition & 3 deletions lib/mayaUsd/fileio/primUpdaterManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,7 @@ PullImportPaths pullImport(
return PullImportPaths(addedDagPaths, pulledUfePaths);
}

VtDictionary userArgs(context.GetUserArgs());

userArgs[UsdMayaJobImportArgsTokens->pullImport] = true;
const VtDictionary& userArgs = context.GetUserArgs();

UsdMayaJobImportArgs jobArgs = UsdMayaJobImportArgs::CreateFromDictionary(
userArgs,
Expand Down
Loading

0 comments on commit 2732123

Please sign in to comment.