Skip to content

Commit

Permalink
HYDRA-1043 : Fix Bifrost graphs can't be displayed in Hydra viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
lanierd-adsk committed Sep 17, 2024
1 parent 6756a66 commit 49620ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/mayaHydra/hydraExtensions/mixedUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ SdfPath DagPathToSdfPath(
std::string name = dagPath.fullPathName().asChar();
if ( name.empty() ) {
MFnDependencyNode dep(dagPath.node());
TF_WARN("Empty fullpath name for DAG object : %s of type : %s", dep.name().asChar(), dep.typeName().asChar());
if (dep.name().length() || dep.typeName().length()){
TF_WARN("Empty fullpath name for DAG object : %s of type : %s", dep.name().asChar(), dep.typeName().asChar());
}
return SdfPath();
}
SanitizeNameForSdfPath(name, stripNamespaces);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,11 @@ namespace {
template<> inline SdfPath maybePrepend<MRenderItem>(
const MRenderItem& ri, const SdfPath& inPath
) {
// Prepend Maya path, for organisation and readability.
// Prepend Maya path, for organization and readability.
auto sdfDagPath = DagPathToSdfPath(ri.sourceDagPath(), false, false).MakeRelativePath(SdfPath::AbsoluteRootPath());
if (sdfDagPath.IsEmpty()){
return inPath;
}
return sdfDagPath.AppendPath(inPath);
}

Expand Down

0 comments on commit 49620ae

Please sign in to comment.