Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMSUSD-490 Fixes outerliner not refreshing when performing a UsdUndoVisibleCommand #3345

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lib/usdUfe/ufe/StagesSubject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ void sendAttributeChanged(
}
} break;
case AttributeChangeType::kRemoved: {
// Special case when Undoing a visibility change, the notice.GetChangedInfoOnlyPaths()
// does not contain the change, hence handling visibility notification in re-synch path.
if (changedToken == UsdGeomTokens->visibility) {
Ufe::VisibilityChanged vis(ufePath);
notifyWithoutExceptions<Ufe::Object3d>(vis);
}
notifyWithoutExceptions<Ufe::Attributes>(
Ufe::AttributeRemoved(ufePath, changedToken.GetString()));
} break;
Expand Down Expand Up @@ -384,7 +390,7 @@ void StagesSubject::stageChanged(
const auto& changedPath = *it;
if (changedPath.IsPrimPropertyPath()) {
// Special case to detect when an xformop is added or removed from a prim.
// We need to send some notifs so DCC can update (such as on undo
// We need to send some notifications so DCC can update (such as on undo
// to move the transform manipulator back to original position).
const TfToken nameToken = changedPath.GetNameToken();
auto usdPrimPathStr = changedPath.GetPrimPath().GetString();
Expand All @@ -395,7 +401,9 @@ void StagesSubject::stageChanged(
notifyWithoutExceptions<Ufe::Transform3d>(ufePath);
}
}

processAttributeChanges(ufePath, changedPath, it.base()->second);

// No further processing for this prim property path is required.
continue;
}
Expand Down
Loading