Merge branch 'master' into fs_dir_per_glyph_SPE-1597

This commit is contained in:
Filip Sykala - NTB T15p 2023-08-15 20:34:18 +02:00
commit 9ef9f10caf
2 changed files with 3 additions and 1 deletions

View File

@ -948,6 +948,7 @@ void GLGizmoCut3D::render_model(GLModel& model, const ColorRGBA& color, Transfor
shader->start_using();
shader->set_uniform("view_model_matrix", view_model_matrix);
shader->set_uniform("emission_factor", 0.2f);
shader->set_uniform("projection_matrix", wxGetApp().plater()->get_camera().get_projection_matrix());
model.set_color(color);

View File

@ -3652,7 +3652,8 @@ bool Tab::select_preset(std::string preset_name, bool delete_current /*=false*/,
}
}
// update_tab_ui(); //! ysFIXME delete after testing
// ! update preset combobox, to revert previously selection
update_tab_ui();
// Trigger the on_presets_changed event so that we also restore the previous value in the plater selector,
// if this action was initiated from the plater.