Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test] unittest 修正 #2500

Merged
merged 1 commit into from
Nov 12, 2024
Merged

[test] unittest 修正 #2500

merged 1 commit into from
Nov 12, 2024

Conversation

ousttrue
Copy link
Contributor

@ousttrue ousttrue commented Nov 12, 2024

Unlit/Color だと例外が発生する。
2022.3 に更新して挙動が変わったかもしれない(未確認)。

Material `Unlit/Color` fallbacks.
Material 'Unlit/Color' with Shader 'Unlit/Color' doesn't have a texture property '_MainTex'
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

var index = textureExporter.RegisterExportingAsSRgb(src.mainTexture, false); // GetTexture("_MainTex");

var index = textureExporter.RegisterExportingAsSRgb(src.mainTexture, false);

    var index = textureExporter.RegisterExportingAsSRgb(src.mainTexture, false); // GetTexture("_MainTex");

が例外を発生させる。
@ousttrue ousttrue merged commit 4afba0e into vrm-c:master Nov 12, 2024
1 of 4 checks passed
@ousttrue ousttrue deleted the fix/test_NoTexture branch November 12, 2024 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants