This repository was archived by the owner on Nov 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments