Skip to content

Commit

Permalink
FIX:FIX BUG on Buried
Browse files Browse the repository at this point in the history
Change-Id: Id7a1d6c3686377c8f77b6071cc9e0754d5d31bbf
  • Loading branch information
MklBambu authored and lanewei120 committed Aug 1, 2023
1 parent d7e1f1d commit 93f94bf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/slic3r/GUI/Gizmos/GLGizmosManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -983,11 +983,13 @@ bool GLGizmosManager::on_mouse(wxMouseEvent& evt)
update_data();
m_parent.set_as_dirty();
try {
std::string name = get_name_from_gizmo_etype(m_hover);
int count = m_gizmos[m_hover]->get_count();
NetworkAgent* agent = GUI::wxGetApp().getAgent();
if (agent) {
agent->track_update_property(name, std::to_string(count));
if ((int)m_hover >= 0 && (int)m_hover < m_gizmos.size()) {
std::string name = get_name_from_gizmo_etype(m_hover);
int count = m_gizmos[m_hover]->get_count();
NetworkAgent* agent = GUI::wxGetApp().getAgent();
if (agent) {
agent->track_update_property(name, std::to_string(count));
}
}
}
catch (...) {}
Expand Down

0 comments on commit 93f94bf

Please sign in to comment.