Skip to content

Commit

Permalink
Use CameraProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
keveleigh committed Jul 7, 2022
1 parent 5db2392 commit da14cf4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Assets/MRTK/Services/CameraSystem/MixedRealityCameraSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,14 @@ public override void Initialize()
{
base.Initialize();

MixedRealityCameraProfile profile = ConfigurationProfile as MixedRealityCameraProfile;
MixedRealityCameraProfile profile = CameraProfile;
var cameraSettingProviders = GetDataProviders<IMixedRealityCameraSettingsProvider>();

if ((cameraSettingProviders.Count == 0) && (profile != null))
{
int settingsConfigurationsLength = profile.SettingsConfigurations.Length;
// Register the settings providers.
for (int i = 0; i < profile.SettingsConfigurations.Length; i++)
for (int i = 0; i < settingsConfigurationsLength; i++)
{
MixedRealityCameraSettingsConfiguration configuration = profile.SettingsConfigurations[i];

Expand Down

0 comments on commit da14cf4

Please sign in to comment.