Skip to content

Commit b25e779

Browse files
author
Takayuki MATSUOKA
committed
Fix Unity 2017.1 issue
1 parent 81ac950 commit b25e779

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/SceneViewFovControl/Editor/SceneViewExtension.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,14 @@ public static GUIContent Get_m_RenderDocContent(this SceneView sceneView) {
4141

4242
static Rect[] PopGUIClips(this SceneView sceneView) {
4343
int count = 1;
44+
#if UNITY_2017_1_OR_NEWER
45+
// do nothing
46+
#else
4447
if(!sceneView.UseSceneFiltering() && sceneView.SceneCameraRendersIntoRT()) {
4548
// https://github.com/MattRix/UnityDecompiled/blob/753fde37d331b2100f93cc5f9eb343f1dcff5eee/UnityEditor/UnityEditor/SceneView.cs#L1255
4649
++count;
4750
}
51+
#endif
4852
var guiClips = new Rect[count];
4953
for(int i = 0; i < count; ++i) {
5054
guiClips[i] = GUIClip.GetTopRect();

0 commit comments

Comments
 (0)