Explorar o código

Corrected Tint black (#2122)

Tint black wasn't working correctly because the red channelwas discarded by error, replacing it by the green channel.
Pol %!s(int64=3) %!d(string=hai) anos
pai
achega
b0a609f027
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      spine-cpp/spine-cpp/src/spine/SkeletonJson.cpp

+ 1 - 1
spine-cpp/spine-cpp/src/spine/SkeletonJson.cpp

@@ -967,7 +967,7 @@ Animation *SkeletonJson::readAnimation(Json *root, SkeletonData *skeletonData) {
 				toColor(color2, Json::getString(keyMap, "dark", 0), false);
 
 				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;
 					if (!nextMap) {
 						// timeline.shrink(); // BOZO