浏览代码

Fixed metrics per frame

/solo_support
Steve Borkman 3 年前
当前提交
259f8463
共有 1 个文件被更改,包括 14 次插入1 次删除
  1. 15
      com.unity.perception/Runtime/GroundTruth/SimulationState.cs

15
com.unity.perception/Runtime/GroundTruth/SimulationState.cs


}
case FutureType.Metric:
{
return asyncFuture.GetId() is SPendingCaptureId captureId && Annotations.ContainsKey(captureId) && Metrics[captureId] == null;
#if true
if (!(asyncFuture.GetId() is SPendingCaptureId captureId))
{
return false;
}
var b = Metrics.ContainsKey(captureId);
if (!b) return false;
var c = Metrics[captureId];
return c == null;
#else
return asyncFuture.GetId() is SPendingCaptureId captureId && Metrics.ContainsKey(captureId) && Metrics[captureId] == null;
#endif
}
default:
throw new ArgumentOutOfRangeException();

正在加载...
取消
保存