Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 6036509

Browse files
committed
Commented out "futuristic" code
1 parent a8b9686 commit 6036509

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

PostProcessing/Runtime/PostProcessManager.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -416,16 +416,17 @@ static void SortByPriority(List<PostProcessVolume> volumes)
416416

417417
static bool IsVolumeRenderedByCamera(PostProcessVolume volume, Camera camera)
418418
{
419-
#if UNITY_2018_3_OR_NEWER && UNITY_EDITOR
420-
// If the current camera have a custom scene then the camera is rendering that scene,
421-
// otherwise the camera is rendering the scenes in the SceneManager.
422-
var customScene = camera.scene;
423-
return customScene.IsValid()
424-
? UnityEditor.SceneManagement.EditorSceneManager.IsGameObjectInScene(volume.gameObject, customScene)
425-
: UnityEditor.SceneManagement.EditorSceneManager.IsGameObjectInMainScenes(volume.gameObject);
426-
#else
419+
// TODO: trunk has branched to 2018.3 but nested prefabs aren't merged yet, uncomment me when they are
420+
//#if UNITY_2018_3_OR_NEWER && UNITY_EDITOR
421+
// // If the current camera have a custom scene then the camera is rendering that scene,
422+
// // otherwise the camera is rendering the scenes in the SceneManager.
423+
// var customScene = camera.scene;
424+
// return customScene.IsValid()
425+
// ? UnityEditor.SceneManagement.EditorSceneManager.IsGameObjectInScene(volume.gameObject, customScene)
426+
// : UnityEditor.SceneManagement.EditorSceneManager.IsGameObjectInMainScenes(volume.gameObject);
427+
//#else
427428
return true;
428-
#endif
429+
//#endif
429430
}
430431
}
431432
}

0 commit comments

Comments
 (0)