mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 17:40:01 +00:00
Fix confusing variable name (two vars named "cel")
This commit is contained in:
parent
b83eddf2ea
commit
9c032013f2
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user