mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 03:07:55 -06:00
FIX:Fix bugs caused by buried points
Change-Id: I47d4e786912120124c134404afce15dec48c7974 Signed-off-by: Kunlong Ma <kunlong.ma@bambulab.com>
This commit is contained in:
parent
80fb7c6d16
commit
fcb7db2dde
3 changed files with 39 additions and 16 deletions
|
@ -982,16 +982,16 @@ bool GLGizmosManager::on_mouse(wxMouseEvent& evt)
|
|||
update_on_off_state(mouse_pos);
|
||||
update_data();
|
||||
m_parent.set_as_dirty();
|
||||
}
|
||||
try {
|
||||
std::string name = m_gizmos[m_hover]->get_gizmo_name();
|
||||
int count = m_gizmos[m_hover]->get_count();
|
||||
NetworkAgent* agent = GUI::wxGetApp().getAgent();
|
||||
if (agent) {
|
||||
agent->track_update_property(name, std::to_string(count));
|
||||
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));
|
||||
}
|
||||
}
|
||||
catch (...) {}
|
||||
}
|
||||
catch (...) {}
|
||||
}
|
||||
else if (evt.MiddleDown()) {
|
||||
m_mouse_capture.middle = true;
|
||||
|
@ -1685,5 +1685,28 @@ int GLGizmosManager::get_shortcut_key(GLGizmosManager::EType type) const
|
|||
return m_gizmos[type]->get_shortcut_key();
|
||||
}
|
||||
|
||||
std::string get_name_from_gizmo_etype(GLGizmosManager::EType type)
|
||||
{
|
||||
switch (type) {
|
||||
case GLGizmosManager::EType::Move:
|
||||
return "Move";
|
||||
case GLGizmosManager::EType::Rotate:
|
||||
return "Rotate";
|
||||
case GLGizmosManager::EType::Scale:
|
||||
return "Scale";
|
||||
case GLGizmosManager::EType::Flatten:
|
||||
return "Flatten";
|
||||
case GLGizmosManager::EType::FdmSupports:
|
||||
return "FdmSupports";
|
||||
case GLGizmosManager::EType::Seam:
|
||||
return "Seam";
|
||||
case GLGizmosManager::EType::Text:
|
||||
return "Text";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
} // namespace GUI
|
||||
} // namespace Slic3r
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue