浏览代码

Reverting unnecessary debug logs. Adding comment to test.

/fix-editor-pause
Jon Hogins 5 年前
当前提交
96bde331
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 2
      com.unity.perception/Runtime/GroundTruth/PerceptionCamera.cs
  2. 1
      com.unity.perception/Tests/Editor/PerceptionCameraEditorTests.cs

2
com.unity.perception/Runtime/GroundTruth/PerceptionCamera.cs


// ReSharper disable once ParameterHidesMember
bool ShouldFlipY(Camera camera)
{
Debug.Log(camera);
Debug.Log(hdAdditionalCameraData);
//Based on logic in HDRenderPipeline.PrepareFinalBlitParameters
return camera.targetTexture != null || hdAdditionalCameraData.flipYMode == HDAdditionalCameraData.FlipYMode.ForceFlipY || camera.cameraType == CameraType.Game;

1
com.unity.perception/Tests/Editor/PerceptionCameraEditorTests.cs


var expectedFirstFrame = Time.frameCount;
yield return null;
EditorApplication.isPaused = true;
//Wait a few editor frames to ensure the issue has a chance to trigger.
yield return null;
yield return null;
yield return null;

正在加载...
取消
保存