mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-30 05:17:19 +00:00
fix: slicer regression test
This commit is contained in:
@@ -2255,7 +2255,7 @@ void Print::process(long long *time_cost_with_cache, bool use_cache)
|
|||||||
|
|
||||||
{
|
{
|
||||||
LifecycleEventContext ctx;
|
LifecycleEventContext ctx;
|
||||||
ctx.name = output_filename();
|
ctx.name = std::to_string(m_model.id().id);
|
||||||
ctx.code = LifecycleEvtCode::Ok;
|
ctx.code = LifecycleEvtCode::Ok;
|
||||||
fire_lifecycle_event(LifecycleEvent::SliceStarted, ctx);
|
fire_lifecycle_event(LifecycleEvent::SliceStarted, ctx);
|
||||||
}
|
}
|
||||||
@@ -2829,8 +2829,8 @@ void Print::process(long long *time_cost_with_cache, bool use_cache)
|
|||||||
|
|
||||||
{
|
{
|
||||||
LifecycleEventContext ctx;
|
LifecycleEventContext ctx;
|
||||||
|
ctx.name = std::to_string(m_model.id().id);
|
||||||
ctx.code = LifecycleEvtCode::Ok;
|
ctx.code = LifecycleEvtCode::Ok;
|
||||||
ctx.name = output_filename();
|
|
||||||
fire_lifecycle_event(LifecycleEvent::SliceGeometryFinished, ctx);
|
fire_lifecycle_event(LifecycleEvent::SliceGeometryFinished, ctx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4451,8 +4451,9 @@ void Print::export_gcode_from_previous_file(const std::string& file, GCodeProces
|
|||||||
{
|
{
|
||||||
{
|
{
|
||||||
LifecycleEventContext ctx;
|
LifecycleEventContext ctx;
|
||||||
ctx.name = file;
|
ctx.name = std::to_string(m_model.id().id);
|
||||||
ctx.code = LifecycleEvtCode::Ok;
|
ctx.code = LifecycleEvtCode::Ok;
|
||||||
|
ctx.msg = file;
|
||||||
fire_lifecycle_event(LifecycleEvent::GCodeExportStarted, ctx);
|
fire_lifecycle_event(LifecycleEvent::GCodeExportStarted, ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4479,9 +4480,9 @@ void Print::export_gcode_from_previous_file(const std::string& file, GCodeProces
|
|||||||
BOOST_LOG_TRIVIAL(error) << __FUNCTION__ << boost::format(": found errors when process gcode file %1%") %file.c_str();
|
BOOST_LOG_TRIVIAL(error) << __FUNCTION__ << boost::format(": found errors when process gcode file %1%") %file.c_str();
|
||||||
{
|
{
|
||||||
LifecycleEventContext ctx;
|
LifecycleEventContext ctx;
|
||||||
ctx.name = file;
|
ctx.name = std::to_string(m_model.id().id);
|
||||||
ctx.code = LifecycleEvtCode::Error;
|
ctx.code = LifecycleEvtCode::Error;
|
||||||
ctx.msg = ex.what();
|
ctx.msg = file + "\n" + ex.what();
|
||||||
fire_lifecycle_event(LifecycleEvent::GCodeExportFinished, ctx);
|
fire_lifecycle_event(LifecycleEvent::GCodeExportFinished, ctx);
|
||||||
}
|
}
|
||||||
throw Slic3r::RuntimeError(
|
throw Slic3r::RuntimeError(
|
||||||
@@ -4492,8 +4493,9 @@ void Print::export_gcode_from_previous_file(const std::string& file, GCodeProces
|
|||||||
|
|
||||||
{
|
{
|
||||||
LifecycleEventContext ctx;
|
LifecycleEventContext ctx;
|
||||||
ctx.name = file;
|
ctx.name = std::to_string(m_model.id().id);
|
||||||
ctx.code = LifecycleEvtCode::Ok;
|
ctx.code = LifecycleEvtCode::Ok;
|
||||||
|
ctx.msg = file;
|
||||||
fire_lifecycle_event(LifecycleEvent::GCodeExportFinished, ctx);
|
fire_lifecycle_event(LifecycleEvent::GCodeExportFinished, ctx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user