Corrected Tint black (#2122)

Tint black wasn't working correctly because the red channelwas discarded by error, replacing it by the green channel.
This commit is contained in:
Pol 2022-08-03 18:31:40 +02:00 committed by GitHub
parent 4386cb8c8e
commit b0a609f027
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -967,7 +967,7 @@ Animation *SkeletonJson::readAnimation(Json *root, SkeletonData *skeletonData) {
toColor(color2, Json::getString(keyMap, "dark", 0), false); toColor(color2, Json::getString(keyMap, "dark", 0), false);
for (frame = 0, bezier = 0;; ++frame) { for (frame = 0, bezier = 0;; ++frame) {
timeline->setFrame(frame, time, color.r, color.g, color.b, color.a, color2.g, color2.g, color2.b); timeline->setFrame(frame, time, color.r, color.g, color.b, color.a, color2.r, color2.g, color2.b);
nextMap = keyMap->_next; nextMap = keyMap->_next;
if (!nextMap) { if (!nextMap) {
// timeline.shrink(); // BOZO // timeline.shrink(); // BOZO