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

親をたどる時、非アクティブなTransformが取得できなくなっていたのを修正 #546

Merged
merged 1 commit into from Sep 11, 2020

Conversation

faidra
Copy link
Contributor

@faidra faidra commented Sep 10, 2020

  • 22eb774 にて、親の取得方法が Ancestor() から GetComponentsInParents<Transform>() に変更されたが、その結果非アクティブな場合に取得できなくなっていた
    • 非アクティブな場合にHeadlessModelが作成されなくなっていた
    • EnableForExportが常にtrueを返すようになってしまっていた
  • GetComponentsInParents<Transform>(true) にする方法も考えられるが、元に戻すのが安全だと判断しました

@ousttrue
Copy link
Contributor

確認しました。
戻すのが良さそうです。

TODO: GetComponentsInParents<Transform>(true) にするときは、UnitTest で非アクティブの動作を確認する

@ousttrue ousttrue merged commit 06de4db into vrm-c:master Sep 11, 2020
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