From 10e537e98a008ff581a12895c9292db4c82c4157 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Fri, 2 Jul 2021 16:18:17 +0200 Subject: [PATCH] ScenarioManager: don't try to set non-existent IsInitializing property * it exists only in vse branch where it was added with this commit: https://auto-gitlab.lgsvl.net/HDRP/Simulator/commit/08038b7a2b87e1608aebe757e74d6acd774006fb#b8a2054485aa4aa693a454077a9753bb5fed45cc but it doesn't exist in master causing: 04:10:58 Assets/Scripts/ScenarioEditor/Managers/ScenarioManager.cs(310,13): error CS0103: The name 'IsInitializing' does not exist in the current context * and assign to private isInitialized property directly to fix: 04:10:58 Assets/Scripts/ScenarioEditor/Managers/ScenarioManager.cs(311,13): error CS0200: Property or indexer 'ScenarioManager.IsInitialized' cannot be assigned to -- it is read only --- Assets/Scripts/ScenarioEditor/Managers/ScenarioManager.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/ScenarioEditor/Managers/ScenarioManager.cs b/Assets/Scripts/ScenarioEditor/Managers/ScenarioManager.cs index 09f495e51..138cd070d 100644 --- a/Assets/Scripts/ScenarioEditor/Managers/ScenarioManager.cs +++ b/Assets/Scripts/ScenarioEditor/Managers/ScenarioManager.cs @@ -307,8 +307,7 @@ private async Task Initialize() private void StopInitialization() { - IsInitializing = false; - IsInitialized = true; + isInitialized = true; Deinitialize(); Loader.ExitScenarioEditor(); } @@ -459,4 +458,4 @@ public void NewElementActivated(ScenarioElement scenarioElement) NewScenarioElement?.Invoke(scenarioElement); } } -} \ No newline at end of file +}