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 @@ -40,9 +40,6 @@ protected virtual void OnEnable()
40
40
41
41
var pf = new PropertyFinder < RecorderSettings > ( serializedObject ) ;
42
42
m_Inputs = pf . Find ( x => x . m_SourceSettings ) ;
43
- m_ShowInputEditor = new bool [ m_Inputs . arraySize ] ;
44
- for ( int i = 0 ; i < m_ShowInputEditor . Length ; ++ i )
45
- m_ShowInputEditor [ i ] = true ;
46
43
m_Verbose = pf . Find ( x => x . m_Verbose ) ;
47
44
m_FrameRateMode = pf . Find ( x => x . m_FrameRateMode ) ;
48
45
m_FrameRate = pf . Find ( x => x . m_FrameRate ) ;
@@ -130,6 +127,14 @@ protected void PrepareInitialSources()
130
127
{
131
128
AddSourceSettings ( newSetting ) ;
132
129
}
130
+ }
131
+
132
+ if ( m_ShowInputEditor == null || m_ShowInputEditor . Length != m_Inputs . arraySize )
133
+ {
134
+ var oldLength = m_ShowInputEditor == null ? 0 : m_ShowInputEditor . Length ;
135
+ m_ShowInputEditor = new bool [ m_Inputs . arraySize ] ;
136
+ for ( int i = oldLength ; i < m_ShowInputEditor . Length ; ++ i )
137
+ m_ShowInputEditor [ i ] = true ;
133
138
}
134
139
}
135
140
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