-
Notifications
You must be signed in to change notification settings - Fork 409
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
springbone の import で throw しない #2064
springbone の import で throw しない #2064
Conversation
fix vrm-c#2023 SpringBone は不完全になるが throw しない。
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.
問題は理解したが、保守性の観点でコードの治安が悪化傾向にあるなあという感想…
本来は Parser の段階で解決したいですね。
とはいえまあ VRM 0.x のコードなんで、いっか……
@@ -335,6 +335,17 @@ async Task<MeshWithMaterials> BuildMeshAsync(IAwaitCaller awaitCaller, Func<stri | |||
#region Imported | |||
protected GameObject Root; | |||
public List<Transform> Nodes = new List<Transform>(); | |||
public bool TryGetNode(int index, out Transform node) |
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.
ここ protected にできませんか?
Unity 上で構成を変更した場合に、Spring とか HumanoidBone とかが参照しているノードが居なくなることがあって、 |
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
UniGLTF 層の glTF JSON 型定義を、VRM 1.0 と同様の水準にもっていきたいですね~ > |
fixed #2023
index の範囲違反を含む SpringBone を import したときに throw しない。
SpringBone の import は中途半端な状態になるが、VRM 全体としてはロードできるようになる。
export 時の index -1 チェックをひとつ追加。