Open emboss when already opened
This commit is contained in:
parent
856b8d1a24
commit
adb6e00d4d
1 changed files with 7 additions and 6 deletions
|
@ -998,12 +998,13 @@ void MenuFactory::append_menu_item_edit_text(wxMenu *menu)
|
||||||
|
|
||||||
wxString description = _L("Ability to change text, font, size, ...");
|
wxString description = _L("Ability to change text, font, size, ...");
|
||||||
std::string icon = "";
|
std::string icon = "";
|
||||||
append_menu_item(
|
auto open_emboss = [](const wxCommandEvent &) {
|
||||||
menu, wxID_ANY, name, description,
|
GLGizmosManager &mng = plater()->canvas3D()->get_gizmos_manager();
|
||||||
[](wxCommandEvent &) {
|
if (mng.get_current_type() == GLGizmosManager::Emboss)
|
||||||
plater()->canvas3D()->get_gizmos_manager().open_gizmo(GLGizmosManager::Emboss);
|
mng.open_gizmo(GLGizmosManager::Emboss); // close() and reopen - move to be visible
|
||||||
},
|
mng.open_gizmo(GLGizmosManager::Emboss);
|
||||||
icon, nullptr, can_edit_text, m_parent);
|
};
|
||||||
|
append_menu_item(menu, wxID_ANY, name, description, open_emboss, icon, nullptr, can_edit_text, m_parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
MenuFactory::MenuFactory()
|
MenuFactory::MenuFactory()
|
||||||
|
|
Loading…
Reference in a new issue