From 9c032013f21978a74eb7265f78fc3a37bd110f0d Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 16 Aug 2018 12:30:39 -0300 Subject: [PATCH] Fix confusing variable name (two vars named "cel") --- src/app/commands/cmd_cel_opacity.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/commands/cmd_cel_opacity.cpp b/src/app/commands/cmd_cel_opacity.cpp index 546361610..6dd959ef0 100644 --- a/src/app/commands/cmd_cel_opacity.cpp +++ b/src/app/commands/cmd_cel_opacity.cpp @@ -81,12 +81,12 @@ void CelOpacityCommand::onExecute(Context* context) range.endRange(layer, cel->frame()); } - for (Cel* cel : cel->sprite()->uniqueCels(range.selectedFrames())) { - if (range.contains(cel->layer())) { - if (!cel->layer()->isBackground() && - cel->layer()->isEditable() && - m_opacity != cel->opacity()) { - transaction.execute(new cmd::SetCelOpacity(cel, m_opacity)); + for (Cel* c : cel->sprite()->uniqueCels(range.selectedFrames())) { + if (range.contains(c->layer())) { + if (!c->layer()->isBackground() && + c->layer()->isEditable() && + m_opacity != c->opacity()) { + transaction.execute(new cmd::SetCelOpacity(c, m_opacity)); } } }