Do not set_volume when same id not pointer

This commit is contained in:
Filip Sykala - NTB T15p 2023-01-31 12:30:48 +01:00
parent 2cebbe72e7
commit 20529f8cf8

View file

@ -1076,7 +1076,8 @@ void GLGizmoEmboss::set_volume_by_selection()
{
ModelVolume *vol = priv::get_selected_volume(m_parent.get_selection());
// is same volume selected?
if (vol != nullptr && m_volume == vol) return;
if (vol != nullptr && vol->id() == m_volume_id)
return;
// for changed volume notification is NOT valid
remove_notification_not_valid_font();