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

Export 時に default 値の TRS を出力しない #1061

Merged
merged 2 commits into from
Jun 22, 2021

Conversation

ousttrue
Copy link
Contributor

#1059

    {
      "name": "1",
      "translation": [
        0,
        0,
        0
      ],
      "rotation": [
        0,
        0,
        0,
        1
      ],
      "scale": [
        1,
        1,
        1
      ]
    }

👇

    {
      "name": "1"
    }

@ousttrue ousttrue requested a review from Santarh June 22, 2021 05:16
@@ -17,14 +17,14 @@ public class glTFNode
[JsonSchema(MinItems = 16, MaxItems = 16)]
public float[] matrix;

[JsonSchema(MinItems = 3, MaxItems = 3)]
[JsonSchema(MinItems = 3, MaxItems = 3, SerializationConditions = new string[] { "!value.translation.SequenceEqual(new float[]{0, 0, 0})" })]
Copy link
Contributor

Choose a reason for hiding this comment

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

悲しみのジェネレートコード、しかしヨシ

厳密に float 比較で一致したときのみなのもよさそう。

@ousttrue ousttrue merged commit e0a9fc1 into vrm-c:master Jun 22, 2021
@ousttrue ousttrue deleted the fix/skip_default_trs branch October 27, 2021 06:00
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