mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[unity] Fix default renderer settings check.
This commit is contained in:
parent
06829d87d9
commit
d59096f05f
@ -1363,9 +1363,9 @@ namespace Spine.Unity.Editor {
|
||||
|
||||
bool pmaVertexColors = false;
|
||||
bool tintBlack = false;
|
||||
foreach (SpineAtlasAsset atlasAsset in skeletonDataAsset.atlasAssets) {
|
||||
foreach (var atlasAsset in skeletonDataAsset.atlasAssets) {
|
||||
if (!pmaVertexColors) {
|
||||
foreach (Material m in atlasAsset.materials) {
|
||||
foreach (Material m in atlasAsset.Materials) {
|
||||
if (m.shader.name.Contains(PMAShaderQuery)) {
|
||||
pmaVertexColors = true;
|
||||
break;
|
||||
@ -1374,7 +1374,7 @@ namespace Spine.Unity.Editor {
|
||||
}
|
||||
|
||||
if (!tintBlack) {
|
||||
foreach (Material m in atlasAsset.materials) {
|
||||
foreach (Material m in atlasAsset.Materials) {
|
||||
if (m.shader.name.Contains(TintBlackShaderQuery)) {
|
||||
tintBlack = true;
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user