浏览代码

Removed avatar from key point labeler

Ends up it wasn't necessary and caused a bug if an avatar wasn't present on the model
/main
Steven Borkman 4 年前
当前提交
512a2e80
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 8
      com.unity.perception/Runtime/GroundTruth/Labelers/KeyPointLabeler.cs

8
com.unity.perception/Runtime/GroundTruth/Labelers/KeyPointLabeler.cs


var animator = entityGameObject.transform.GetComponentInChildren<Animator>();
if (animator != null)
{
var avatar = animator.avatar;
if (avatar.isValid && avatar.isHuman)
{
cached.animator = animator;
cached.status = true;
}
cached.animator = animator;
cached.status = true;
}
foreach (var joint in entityGameObject.transform.GetComponentsInChildren<JointLabel>())

正在加载...
取消
保存