Fix bug with creating a target with an identifier that already exists

This commit is contained in:
Ylva Selling
2022-04-28 11:54:43 -04:00
parent 4692c4d74b
commit 8aec879677
3 changed files with 12 additions and 5 deletions

View File

@@ -64,6 +64,7 @@ public:
std::string selectedBrowserId() const;
std::string selectedTargetId() const;
glm::ivec3 highlight() const;
int uniqueIdentifierCounter() const;
void setSelectedBrowser(const std::string& id);
void setHoverCircle(SceneGraphNode* circle);
@@ -117,6 +118,7 @@ private:
TargetBrowserPair* _mouseOnPair = nullptr;
SceneGraphNode* _hoverCircle = nullptr;
std::string _selectedBrowser = ""; // Currently selected browser
int _uniqueIdentifierCounter = 0;
// Flags
bool _isCameraInSolarSystem = true; // Visualization modes