-
Notifications
You must be signed in to change notification settings - Fork 439
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
Fix10/mtoon export/import #1167
Conversation
ousttrue
commented
Aug 24, 2021
- export: null check
- import: texture の割り当て
* try による握りつぶしをやめて Error は失敗させる
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -14,163 +14,155 @@ public static class Vrm10MToonMaterialExporter | |||
|
|||
public static bool TryExportMaterialAsMToon(Material src, ITextureExporter textureExporter, out glTFMaterial dst) | |||
{ | |||
try | |||
if (src.shader.name != MToon10Meta.UnityShaderName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
インデントズレにつき、このファイルの diff はここだけ
@@ -217,6 +209,10 @@ public static void ExportTextureTransform(glTFTextureInfo textureInfo, Vector2 u | |||
|
|||
public static void ExportTextureTransform(TextureInfo textureInfo, Vector2 unityScale, Vector2 unityOffset) | |||
{ | |||
if (textureInfo == null) | |||
{ | |||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ぬるぬる
@@ -128,7 +128,7 @@ private static bool TryGetShadingShiftTexture(GltfData data, VRMC_materials_mtoo | |||
|
|||
private static bool TryGetMatcapTexture(GltfData data, VRMC_materials_mtoon mToon, out (SubAssetKey, TextureDescriptor) pair) | |||
{ | |||
return TryGetSRGBTexture(data, new Vrm10TextureInfo(mToon.ShadingShiftTexture), out pair); | |||
return TryGetSRGBTexture(data, new Vrm10TextureInfo(mToon.MatcapTexture), out pair); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
おっとっと