Skip to content

Commit 62a49b8

Browse files
committed
fix: typo caused _allowedNames variable to get lost
1 parent a50b630 commit 62a49b8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Assets/Scripts/Pinpoint/PinpointAtlasManager.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class PinpointAtlasManager : MonoBehaviour
1818

1919
private Dictionary<string, string> _atlasNameMapping;
2020
private Dictionary<string, bool> _allowedOnWebGLMapping;
21-
List<string> _allowedNames;
21+
private List<string> _allowedNames;
2222

2323
public HashSet<OntologyNode> DefaultNodes;
2424

@@ -79,7 +79,7 @@ public void PopulateAtlasDropdown()
7979
if (_allowedOnWebGLMapping[atlasNames[i]])
8080
_allowedNames.Add(atlasNames[i]);
8181
#else
82-
var _allowedNames = atlasNames;
82+
_allowedNames = atlasNames;
8383
#endif
8484

8585
_atlasDropdown.options = _allowedNames.ConvertAll(x => ConvertAtlas2Userfriendly(x));
@@ -101,6 +101,9 @@ public void SetAtlas(int option)
101101

102102
private void ResetScene(int option)
103103
{
104+
#if UNITY_EDITOR
105+
Debug.Log($"(PAM) Resetting atlas to option {option}");
106+
#endif
104107
PlayerPrefs.SetInt("scene-atlas-reset", 1);
105108
Settings.AtlasName = _allowedNames[option];
106109
#if UNITY_EDITOR

0 commit comments

Comments
 (0)