Fix blank DataViewItem being added to objects list

This commit is contained in:
Ocraftyone
2023-11-27 05:42:01 -05:00
parent 8e26df2815
commit d13bbb1890

View File

@@ -480,7 +480,7 @@ wxDataViewItem ObjectDataViewModel::AddPlate(PartPlate* part_plate, wxString nam
}
}
if (!is_added) {
if (!is_added && plate_idx != -1) {
m_plates.push_back(plate_node);
}