Skip to content

Commit 4c1ccb7

Browse files
committed
fixed gui exception when selecting a render texture as input
1 parent 2017492 commit 4c1ccb7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

source/FrameRecorder/Core/Editor/RecorderWindow.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,22 @@ public void OnGUI()
109109
{
110110
EditorGUILayout.EndScrollView();
111111
}
112+
}
113+
catch (ExitGUIException)
114+
{
115+
112116
}
113117
catch (Exception ex)
114118
{
115119
if (m_State == EState.Recording)
120+
{
116121
try
117122
{
118123
Debug.LogError("Aborting recording due to an exception!\n" + ex.ToString());
119124
StopRecording();
120125
}
121-
catch (Exception)
122-
{
123-
124-
}
126+
catch (Exception) {}
127+
}
125128
Debug.LogException(ex);
126129
}
127130
}

0 commit comments

Comments
 (0)