mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Fixed SkeletonMecanim MixModes being incorrectly initialized (AlwaysMix vs MixNext) when Custom MixMode is enabled and the Component was just created/reset or new Mecanim layers were added.
This commit is contained in:
parent
7011a462db
commit
24e17bfeea
@ -278,7 +278,7 @@ namespace Spine.Unity {
|
|||||||
bool isAdditiveLayer = false;
|
bool isAdditiveLayer = false;
|
||||||
if (layer < layerBlendModes.Length)
|
if (layer < layerBlendModes.Length)
|
||||||
isAdditiveLayer = layerBlendModes[layer] == MixBlend.Add;
|
isAdditiveLayer = layerBlendModes[layer] == MixBlend.Add;
|
||||||
layerMixModes[layer] = isAdditiveLayer ? MixMode.MixNext : MixMode.AlwaysMix;
|
layerMixModes[layer] = isAdditiveLayer ? MixMode.AlwaysMix : MixMode.MixNext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user