Do not set_volume when same id not pointer
This commit is contained in:
parent
2cebbe72e7
commit
20529f8cf8
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue