ソースを参照

Corrected Tint black (#2122)

Tint black wasn't working correctly because the red channelwas discarded by error, replacing it by the green channel.
Pol 3 年 前
コミット
b0a609f027
1 ファイル変更1 行追加1 行削除
  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