Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions com.unity.render-pipelines.universal/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Changed
- Setting the renderingData.cameraData.isSceneCamera is now marked as obsolete and replaced by renderingData.cameraData.cameraType.

### Fixed
- Fixed an issue where grid lines were being drawn on top of opaque objects in the preview window [case 1240723](https://issuetracker.unity3d.com/issues/urp-grid-is-rendered-in-front-of-the-model-in-the-inspector-animation-preview-window-when-depth-or-opaque-texture-is-enabled)
- Fixed an issue where objects in the preview window were being affected by layer mask settings in the default renderer [case 1204376](https://issuetracker.unity3d.com/issues/urp-prefab-preview-is-blank-when-a-custom-forward-renderer-data-and-default-layer-mask-is-mixed-are-used)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ static void InitializeStackedCameraData(Camera baseCamera, UniversalAdditionalCa
cameraData.targetTexture = baseCamera.targetTexture;
cameraData.isStereoEnabled = IsStereoEnabled(baseCamera);
cameraData.cameraType = baseCamera.cameraType;
cameraData.isSceneViewCamera = cameraData.cameraType == CameraType.SceneView;
cameraData.numberOfXRPasses = 1;
cameraData.isXRMultipass = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,7 @@ public Matrix4x4 GetGPUProjectionMatrix()
/// <summary>
/// True if the camera rendering is for the scene window in the editor
/// </summary>
public bool isSceneViewCamera
{
get => cameraType == CameraType.SceneView;
set { Debug.LogWarning("Setting isSceneViewCamera is an invalid operation. Please use cameraType instead."); }
}
public bool isSceneViewCamera;

/// <summary>
/// True if the camera rendering is for the preview window in the editor
Expand Down