[csharp] Fix ColorTimeline.Apply before first key.

This commit is contained in:
pharan 2018-11-28 23:26:45 +08:00 committed by GitHub
parent 80272fb719
commit 5530805a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -633,10 +633,10 @@ namespace Spine {
slot.a = slotData.a;
return;
case MixBlend.First:
slot.r += (slot.r - slotData.r) * alpha;
slot.g += (slot.g - slotData.g) * alpha;
slot.b += (slot.b - slotData.b) * alpha;
slot.a += (slot.a - slotData.a) * alpha;
slot.r += (slotData.r - slot.r) * alpha;
slot.g += (slotData.g - slot.g) * alpha;
slot.b += (slotData.b - slot.b) * alpha;
slot.a += (slotData.a - slot.a) * alpha;
return;
}
return;