FIX:FIX BUG on Buried
Change-Id: Id7a1d6c3686377c8f77b6071cc9e0754d5d31bbf
This commit is contained in:
parent
d7e1f1d3a6
commit
93f94bf07c
|
@ -983,11 +983,13 @@ bool GLGizmosManager::on_mouse(wxMouseEvent& evt)
|
||||||
update_data();
|
update_data();
|
||||||
m_parent.set_as_dirty();
|
m_parent.set_as_dirty();
|
||||||
try {
|
try {
|
||||||
std::string name = get_name_from_gizmo_etype(m_hover);
|
if ((int)m_hover >= 0 && (int)m_hover < m_gizmos.size()) {
|
||||||
int count = m_gizmos[m_hover]->get_count();
|
std::string name = get_name_from_gizmo_etype(m_hover);
|
||||||
NetworkAgent* agent = GUI::wxGetApp().getAgent();
|
int count = m_gizmos[m_hover]->get_count();
|
||||||
if (agent) {
|
NetworkAgent* agent = GUI::wxGetApp().getAgent();
|
||||||
agent->track_update_property(name, std::to_string(count));
|
if (agent) {
|
||||||
|
agent->track_update_property(name, std::to_string(count));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (...) {}
|
catch (...) {}
|
||||||
|
|
Loading…
Reference in New Issue