Fixed update of GUI when object is selected by right-clicking on it to show its context menu

This commit is contained in:
Enrico Turri 2018-10-25 12:36:10 +02:00
parent c00ee0659e
commit e72a058600
2 changed files with 3 additions and 0 deletions

View file

@ -1374,6 +1374,8 @@ void Plater::priv::selection_changed()
_3DScene::enable_toolbar_item(canvas3D, "splitvolumes", can_split_to_volumes());
_3DScene::enable_toolbar_item(canvas3D, "cut", can_cut_object());
_3DScene::enable_toolbar_item(canvas3D, "layersediting", layers_height_allowed());
// forces a frame render to update the view (to avoid a missed update if, for example, the context menu appears)
_3DScene::render(canvas3D);
#else
_3DScene::enable_toolbar_item(canvas3D, "fewer", have_sel);
_3DScene::enable_toolbar_item(canvas3D, "splitobjects", have_sel);