FIX: always empty popup in unprintable case

jira:NONE

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I90fcb90ef01e8cc398683bf00eb8d87eefe95069
(cherry picked from commit f79ba9e315689202f592cac3dcc3027c4eae9164)
This commit is contained in:
xun.zhang
2025-01-17 15:43:10 +08:00
committed by Noisyfox
parent 6ce74ddd6b
commit 4742521930
3 changed files with 21 additions and 10 deletions

View File

@@ -15559,11 +15559,13 @@ void Plater::validate_current_plate(bool& model_fits, bool& validate_error)
p->view3D->get_canvas3d()->set_sequential_print_clearance_polygons(polygons, height_polygons);
}
auto clashed_text = get_object_clashed_text();
if (!model_fits) {
p->notification_manager->push_plater_error_notification(get_object_clashed_text());
if(!clashed_text.empty())
p->notification_manager->push_plater_error_notification(clashed_text);
}
else {
p->notification_manager->close_plater_error_notification(get_object_clashed_text());
p->notification_manager->close_plater_error_notification(clashed_text);
}
if (state == ModelInstancePVS_Limited) {