We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81ac950 commit b25e779Copy full SHA for b25e779
Assets/SceneViewFovControl/Editor/SceneViewExtension.cs
@@ -41,10 +41,14 @@ public static GUIContent Get_m_RenderDocContent(this SceneView sceneView) {
41
42
static Rect[] PopGUIClips(this SceneView sceneView) {
43
int count = 1;
44
+#if UNITY_2017_1_OR_NEWER
45
+ // do nothing
46
+#else
47
if(!sceneView.UseSceneFiltering() && sceneView.SceneCameraRendersIntoRT()) {
48
// https://github.com/MattRix/UnityDecompiled/blob/753fde37d331b2100f93cc5f9eb343f1dcff5eee/UnityEditor/UnityEditor/SceneView.cs#L1255
49
++count;
50
}
51
+#endif
52
var guiClips = new Rect[count];
53
for(int i = 0; i < count; ++i) {
54
guiClips[i] = GUIClip.GetTopRect();
0 commit comments