Skip to content

Commit

Permalink
[gradient] More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Aug 29, 2023
1 parent bfcf66a commit a57c9ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/libossia
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Component::Component(
element, ctx, "Executor::GradientComponent", parent}
{
auto node = ossia::make_node<ossia::nodes::gradient>(*ctx.execState.get());
node->process_dur = element.duration();

{
auto unit = element.outlet->address().qualifiers.get().unit;
Expand Down Expand Up @@ -94,8 +95,8 @@ void Component::recompute()
auto g = process().gradient();

s.executionQueue.enqueue(
[proc = std::dynamic_pointer_cast<gradient>(OSSIAProcess().node), g] {
proc->set_gradient(to_ossia_gradient(g));
[proc = std::dynamic_pointer_cast<gradient>(OSSIAProcess().node), grad = to_ossia_gradient(g)] () mutable {
proc->set_gradient(std::move(grad));
});
}
}
Expand Down

0 comments on commit a57c9ef

Please sign in to comment.