File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
source/FrameRecorder/Core/Editor Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ protected virtual void OnEnable()
24
24
{
25
25
var pf = new PropertyFinder < RecorderSettings > ( serializedObject ) ;
26
26
m_Inputs = pf . Find ( x => x . m_SourceSettings ) ;
27
- m_ShowInputEditor = new bool [ m_Inputs . arraySize ] ;
28
- for ( int i = 0 ; i < m_ShowInputEditor . Length ; ++ i )
29
- m_ShowInputEditor [ i ] = true ;
30
27
m_Verbose = pf . Find ( x => x . m_Verbose ) ;
31
28
m_FrameRateMode = pf . Find ( x => x . m_FrameRateMode ) ;
32
29
m_FrameRate = pf . Find ( x => x . m_FrameRate ) ;
@@ -111,6 +108,14 @@ protected void PrepareInitialSources()
111
108
{
112
109
AddSourceSettings ( newSetting ) ;
113
110
}
111
+ }
112
+
113
+ if ( m_ShowInputEditor == null || m_ShowInputEditor . Length != m_Inputs . arraySize )
114
+ {
115
+ var oldLength = m_ShowInputEditor == null ? 0 : m_ShowInputEditor . Length ;
116
+ m_ShowInputEditor = new bool [ m_Inputs . arraySize ] ;
117
+ for ( int i = oldLength ; i < m_ShowInputEditor . Length ; ++ i )
118
+ m_ShowInputEditor [ i ] = true ;
114
119
}
115
120
}
116
121
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ public void OnGUI()
115
115
if ( m_State == EState . Recording )
116
116
try
117
117
{
118
- Debug . LogError ( "Aborting recording due to an exception!" ) ;
118
+ Debug . LogError ( "Aborting recording due to an exception!\n " + ex . ToString ( ) ) ;
119
119
StopRecording ( ) ;
120
120
}
121
121
catch ( Exception )
You can’t perform that action at this time.
0 commit comments