FIX: CLI: fix the crash caused by plate name snapshot

Change-Id: I757597609c05c8eeabcb3011c9638ba5adee4904
This commit is contained in:
lane.wei 2023-07-18 21:30:44 +08:00 committed by Lane.Wei
parent 8f67181fd9
commit ce051c34d2

View file

@ -1705,6 +1705,7 @@ void PartPlate::set_plate_name(const std::string &name)
{
// compare if name equal to m_name, case sensitive
if (boost::equals(m_name, name)) return;
if (m_plater)
m_plater->take_snapshot("set_plate_name");
m_name = name;