[aseprite] 156/308: Fix problem setting cel color in all cels when a range is selected in Timeline

Tobias Hansen thansen at moszumanska.debian.org
Tue Mar 8 02:45:05 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit db13644e0a99be7dbf50dc0d2d6f5bdf9024a372
Author: David Capello <davidcapello at gmail.com>
Date:   Wed Dec 23 14:19:09 2015 -0300

    Fix problem setting cel color in all cels when a range is selected in Timeline
---
 src/app/commands/cmd_cel_properties.cpp | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/app/commands/cmd_cel_properties.cpp b/src/app/commands/cmd_cel_properties.cpp
index b471415..39aea79 100644
--- a/src/app/commands/cmd_cel_properties.cpp
+++ b/src/app/commands/cmd_cel_properties.cpp
@@ -177,18 +177,18 @@ private:
         }
         else {
           for (Cel* cel : m_document->sprite()->uniqueCels()) {
-            if (!cel->layer()->isBackground() &&
-                m_range.inRange(cel->sprite()->layerToIndex(cel->layer()),
-                                cel->frame())) {
-              transaction.execute(new cmd::SetCelOpacity(cel, newOpacity));
-            }
-
-            if (m_userData != cel->data()->userData()) {
-              transaction.execute(new cmd::SetUserData(cel->data(), m_userData));
-
-              // Redraw timeline because the cel's user data/color
-              // might have changed.
-              App::instance()->getMainWindow()->getTimeline()->invalidate();
+            if (m_range.inRange(cel->sprite()->layerToIndex(cel->layer()), cel->frame())) {
+              if (!cel->layer()->isBackground()) {
+                transaction.execute(new cmd::SetCelOpacity(cel, newOpacity));
+              }
+
+              if (m_userData != cel->data()->userData()) {
+                transaction.execute(new cmd::SetUserData(cel->data(), m_userData));
+
+                // Redraw timeline because the cel's user data/color
+                // might have changed.
+                App::instance()->getMainWindow()->getTimeline()->invalidate();
+              }
             }
           }
         }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list