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

VRM は Animation をエクスポートしない #1543

Merged
merged 2 commits into from Feb 22, 2022

Conversation

ousttrue
Copy link
Contributor

#1522

virtual void gltfExporter.ExportAnimations() を切り出した。

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.

よさそう。
なんですが、一点プリプロセッサに関して。

}
#endregion
// 関連する一部の関数が Editor 専用のため、
// Editor 時のみ Export する。
Copy link
Contributor

Choose a reason for hiding this comment

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

以下の点からプリプロセッサを使うのをやめ、 ExportAnimations の実装の先頭で if (!Applications.isPlaying) で判別するべきかなと思います。

  • using UnityEditor していないので、プリプロセッサで囲う必要が無い
  • ExportAnimations は override されうるので Editor の関数を使うかどうかは内部実装に依る

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.

よさそう。

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.

None yet

2 participants