Skip to content

Commit

Permalink
Fixes a type mismatch warning issue that occurs on Linux platform
Browse files Browse the repository at this point in the history
  • Loading branch information
AramAzhari-adsk committed Mar 4, 2024
1 parent 12d6f9e commit a16403e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/mayaUsd/commands/layerEditorCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ class LockLayer : public BaseCmd
}

// Execute lock commands
for (int layerIndex = 0; layerIndex < _layers.size(); layerIndex++) {
for (size_t layerIndex = 0; layerIndex < _layers.size(); layerIndex++) {
MayaUsd::lockLayer(_proxyShapePath, _layers[layerIndex], _lockType, true);
}

Expand All @@ -839,7 +839,7 @@ class LockLayer : public BaseCmd
return false;
}
// Execute lock commands
for (int layerIndex = 0; layerIndex < _layers.size(); layerIndex++) {
for (size_t layerIndex = 0; layerIndex < _layers.size(); layerIndex++) {
// Note: the undo of system-locked is unlocked by design.
if (_previousStates[layerIndex] == MayaUsd::LayerLockType::LayerLock_SystemLocked) {
MayaUsd::lockLayer(
Expand Down Expand Up @@ -931,7 +931,7 @@ class RefreshSystemLockLayer : public BaseCmd
}

// Execute lock commands
for (int layerIndex = 0; layerIndex < _layers.size(); layerIndex++) {
for (size_t layerIndex = 0; layerIndex < _layers.size(); layerIndex++) {
if (!_lockCommands[layerIndex]->doIt(_layers[layerIndex])) {
return false;
}
Expand All @@ -945,7 +945,7 @@ class RefreshSystemLockLayer : public BaseCmd
bool undoIt(SdfLayerHandle layer) override
{
// Execute lock commands
for (int layerIndex = 0; layerIndex < _layers.size(); layerIndex++) {
for (size_t layerIndex = 0; layerIndex < _layers.size(); layerIndex++) {
if (!_lockCommands[layerIndex]->undoIt(_layers[layerIndex])) {
return false;
}
Expand Down

0 comments on commit a16403e

Please sign in to comment.