ENH:support double-click switch for svg and text gizmos
jira: none Change-Id: I664ee59367aedca8792de30fdf7d25b005d079e6 (cherry picked from commit 29420cc4217364df10dba3d66b2f801f7a4ac98a)
This commit is contained in:
parent
837c962dfb
commit
c20e839472
|
@ -4568,8 +4568,9 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
|
|||
// Detection of doubleclick on text to open emboss edit window
|
||||
auto type = m_gizmos.get_current_type();
|
||||
if (evt.LeftDClick() && !m_hover_volume_idxs.empty() &&
|
||||
(type == GLGizmosManager::EType::Undefined //||type == GLGizmosManager::EType::Text ||
|
||||
//type == GLGizmosManager::EType::Svg
|
||||
(type == GLGizmosManager::EType::Undefined ||
|
||||
type == GLGizmosManager::EType::Text ||
|
||||
type == GLGizmosManager::EType::Svg
|
||||
)) {
|
||||
for (int hover_volume_id : m_hover_volume_idxs) {
|
||||
const GLVolume &hover_gl_volume = *m_volumes.volumes[hover_volume_id];
|
||||
|
|
|
@ -956,7 +956,12 @@ bool GLGizmosManager::on_mouse(wxMouseEvent& evt)
|
|||
m_gizmos[m_current]->on_mouse(evt);
|
||||
}
|
||||
// mouse anywhere
|
||||
if (evt.Moving()) {
|
||||
if (evt.LeftDClick()) {
|
||||
if (m_current == Text || m_current == Svg) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (evt.Moving()) {
|
||||
m_tooltip = update_hover_state(mouse_pos);
|
||||
if (m_current == MmuSegmentation || m_current == FdmSupports || m_current == Text || m_current == BrimEars || m_current == Svg)
|
||||
// BBS
|
||||
|
|
Loading…
Reference in New Issue