@@ -113,9 +113,6 @@ private class UserConfigChange
113
113
// The sdk mode indicates which SDK that we're using to drive the display.
114
114
public SdkMode m_SdkMode ;
115
115
116
- // Stores the value of IsExperimental at startup time
117
- [ NonSerialized ] public bool m_WasExperimentalAtStartup ;
118
-
119
116
// Whether or not to just do an automatic profile and then exit.
120
117
public bool m_AutoProfile ;
121
118
// How long to wait before starting to profile.
@@ -126,7 +123,7 @@ private class UserConfigChange
126
123
public string [ ] m_SketchFiles = new string [ 0 ] ;
127
124
[ NonSerialized ] public bool m_QuickLoad = true ;
128
125
129
- public SecretsConfig . ServiceAuthData GoogleSecrets => Secrets [ SecretsConfig . Service . Google ] ;
126
+ public SecretsConfig . ServiceAuthData GoogleSecrets => Secrets ? [ SecretsConfig . Service . Google ] ;
130
127
public SecretsConfig . ServiceAuthData SketchfabSecrets => Secrets [ SecretsConfig . Service . Sketchfab ] ;
131
128
public SecretsConfig . ServiceAuthData OculusSecrets => Secrets [ SecretsConfig . Service . Oculus ] ;
132
129
public SecretsConfig . ServiceAuthData OculusMobileSecrets => Secrets [ SecretsConfig . Service . OculusMobile ] ;
@@ -530,12 +527,6 @@ public bool GeometryShaderSuppported
530
527
}
531
528
}
532
529
533
- // Non-Static version of above
534
- public bool GetIsExperimental ( )
535
- {
536
- return PlayerPrefs . HasKey ( "ExperimentalMode" ) && PlayerPrefs . GetInt ( "ExperimentalMode" ) == 1 ;
537
- }
538
-
539
530
public void SetIsExperimental ( bool active )
540
531
{
541
532
PlayerPrefs . SetInt ( "ExperimentalMode" , active ? 1 : 0 ) ;
@@ -546,7 +537,6 @@ public void SetIsExperimental(bool active)
546
537
void Awake ( )
547
538
{
548
539
m_SingletonState = this ;
549
- m_WasExperimentalAtStartup = GetIsExperimental ( ) ;
550
540
551
541
#if UNITY_EDITOR
552
542
if ( ! string . IsNullOrEmpty ( m_FakeCommandLineArgsInEditor ) )
@@ -580,12 +570,9 @@ void Awake()
580
570
#endif
581
571
582
572
m_BrushReplacement = new Dictionary < Guid , Guid > ( ) ;
583
- if ( IsExperimental )
573
+ foreach ( var brush in m_BrushReplacementMap )
584
574
{
585
- foreach ( var brush in m_BrushReplacementMap )
586
- {
587
- m_BrushReplacement . Add ( new Guid ( brush . FromGuid ) , new Guid ( brush . ToGuid ) ) ;
588
- }
575
+ m_BrushReplacement . Add ( new Guid ( brush . FromGuid ) , new Guid ( brush . ToGuid ) ) ;
589
576
}
590
577
}
591
578
0 commit comments