Clears temp-selection when changing the edition mode.

This commit is contained in:
Maxime Gimeno 2016-05-10 10:21:05 +02:00 committed by Sébastien Loriot
parent f076595e38
commit 68d7063dda
1 changed files with 4 additions and 0 deletions

View File

@ -376,6 +376,8 @@ public Q_SLOTS:
void on_ModeBox_changed(int index)
{
Scene_polyhedron_selection_item* selection_item = get_selected_item<Scene_polyhedron_selection_item>();
selection_item->on_Ctrlz_pressed();
last_mode = index;
switch(index)
{
@ -443,6 +445,8 @@ public Q_SLOTS:
void on_editionBox_changed(int mode )
{
Scene_polyhedron_selection_item* selection_item = get_selected_item<Scene_polyhedron_selection_item>();
selection_item->on_Ctrlz_pressed();
if(ui_widget.modeBox->currentIndex() == 0)
{
Q_EMIT set_operation_mode(-1);