expected
This commit is contained in:
+4
-3
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user