This commit is contained in:
2026-08-16 21:18:28 +08:00
parent 9d544c7ba9
commit 3153f7d64f
15 changed files with 387 additions and 200 deletions
+4 -3
View File
@@ -45,9 +45,10 @@ void Abs_Plot_Private::attach_widget(Abs_Plot* plot) {
QObject::connect(timer, &QTimer::timeout, plot, [this] {
if (!scene->view_active())
return;
const auto error = scene->render_frame();
if (error == Plot_Render_Result::external_failure ||
error == Plot_Render_Result::scene_shutting_down)
const auto result = scene->render_frame();
if (!result &&
(result.error() == Plot_Render_Frame_Error::external_failure ||
result.error() == Plot_Render_Frame_Error::scene_shutting_down))
timer->stop();
});
}