Skip to content

Commit

Permalink
MAYA-128907 code format (comment format...)
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrebai-adsk committed Jun 6, 2023
1 parent eb90714 commit e6d85d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/mayaUsd/utils/utilSerialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ SdfLayerRefPtr saveAnonymousLayer(
std::string formatArg)
{
// TODO: the code below is very similar to LayerTreeItem::saveAnonymousLayer().
// When fixing bug here or there, we need to fix it in the other. Refactor to have a single copy.
// When fixing bug here or there, we need to fix it in the other. Refactor to have a
// single copy.

if (!anonLayer || !anonLayer->IsAnonymous()) {
return nullptr;
Expand Down Expand Up @@ -369,7 +370,7 @@ SdfLayerRefPtr saveAnonymousLayer(
// opening the layer in isolation, we need to use the absolute path. Failure to
// do so will make finding the layer by its own identifier fail! A symptom of
// this failure is that drag-and-drop in the Layer Manager UI fails immediately
// after saving a lyer with relative paths.
// after saving a layer with a relative path.
SdfLayerRefPtr newLayer = SdfLayer::FindOrOpen(pathInfo.absolutePath);

// Now replace the layer in the parent, using a relative path if requested.
Expand Down
5 changes: 3 additions & 2 deletions lib/usd/ui/layerEditor/layerTreeItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ void LayerTreeItem::saveEditsNoPrompt()
void LayerTreeItem::saveAnonymousLayer()
{
// TODO: the code below is very similar to mayaUsd::utils::saveAnonymousLayer().
// When fixing bug here or there, we need to fix it in the other. Refactor to have a single copy.
// When fixing bug here or there, we need to fix it in the other. Refactor to have a
// single copy.

auto sessionState = parentModel()->sessionState();

Expand Down Expand Up @@ -403,7 +404,7 @@ void LayerTreeItem::saveAnonymousLayer()
// opening the layer in isolation, we need to use the absolute path. Failure
// to do so will make finding the layer by its own identifier fail! A symptom
// of this failure is that drag-and-drop in the Layer Manager UI fails
// immediately after saving a lyer with relative paths.
// immediately after saving a layer with a relative path.
SdfLayerRefPtr newLayer = SdfLayer::FindOrOpen(absoluteFileName);

// Now replace the layer in the parent, using a relative path if requested.
Expand Down

0 comments on commit e6d85d4

Please sign in to comment.