add more comment

This commit is contained in:
Filip Sykala - NTB T15p 2023-03-30 12:37:50 +02:00
parent e966b1e0cd
commit 827d08d090

View File

@ -782,12 +782,14 @@ void GLGizmoEmboss::data_changed(bool is_serializing) {
set_volume_by_selection(); set_volume_by_selection();
// when open window by "T" and no valid volume is selected, so Create new one // when open window by "T" and no valid volume is selected, so Create new one
// this is only place where One could distiguish between serializing and open by shortcut T
if (!is_serializing && m_is_just_opened && m_volume == nullptr) { if (!is_serializing && m_is_just_opened && m_volume == nullptr) {
// reopen gizmo when new object is created // reopen gizmo when new object is created
close(); close();
if (wxGetApp().get_mode() == comSimple || wxGetApp().obj_list()->has_selected_cut_object()) if (wxGetApp().get_mode() == comSimple || wxGetApp().obj_list()->has_selected_cut_object())
// It's impossible to add a part in simple mode // It's unwanted to add a part in simple mode
return; return;
// start creating new object // start creating new object
create_volume(ModelVolumeType::MODEL_PART); create_volume(ModelVolumeType::MODEL_PART);
} }