Skip to content

Commit

Permalink
Using a better check for permission to save a layer
Browse files Browse the repository at this point in the history
  • Loading branch information
fowlertADSK committed Feb 24, 2021
1 parent 8022b12 commit bb01434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mayaUsd/nodes/layerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ bool LayerDatabase::saveUsdToUsdFiles()

SdfLayerHandleVector allLayers = stage->GetLayerStack(false);
for (auto layer : allLayers) {
if (!layer->IsAnonymous()) {
if (layer->PermissionToSave()) {
layer->Save();
}
}
Expand Down

0 comments on commit bb01434

Please sign in to comment.