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

Fix10/mtoon export/import #1167

Merged
merged 2 commits into from
Aug 24, 2021
Merged

Conversation

ousttrue
Copy link
Contributor

  • export: null check
  • import: texture の割り当て

* try による握りつぶしをやめて Error は失敗させる
@ousttrue ousttrue requested a review from Santarh August 24, 2021 11:26
Copy link
Contributor

@Santarh Santarh left a 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)
Copy link
Contributor

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;
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

おっとっと

@ousttrue ousttrue merged commit 39d1dc8 into vrm-c:master Aug 24, 2021
@ousttrue
Copy link
Contributor Author

ousttrue commented Sep 1, 2021

#1164

@ousttrue ousttrue deleted the fix10/mtoon_export branch October 27, 2021 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants