Skip to content

Commit

Permalink
Darkroom: on module drag and drop, flag the pipeline for rebuild befo…
Browse files Browse the repository at this point in the history
…re adding history item
  • Loading branch information
aurelienpierre committed Jan 12, 2025
1 parent abf01f4 commit 7258dbf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/views/darkroom.c
Original file line number Diff line number Diff line change
Expand Up @@ -2172,15 +2172,16 @@ static void _on_drag_data_received(GtkWidget *widget, GdkDragContext *dc, gint x
// we update the headers
dt_dev_modules_update_multishow(module_src->dev);

// add_history_item recomputes a pipeline
// so we need to flag it for rebuild before
dt_dev_pixelpipe_rebuild(module_src->dev);
dt_dev_add_history_item(module_src->dev, module_src, TRUE);

dt_ioppr_check_iop_order(module_src->dev, 0, "_on_drag_data_received end");

// rebuild the accelerators
dt_iop_connect_accels_multi(module_src->so);

dt_dev_pixelpipe_rebuild(module_src->dev);

DT_DEBUG_CONTROL_SIGNAL_RAISE(darktable.signals, DT_SIGNAL_DEVELOP_MODULE_MOVED);
}
}
Expand Down

0 comments on commit 7258dbf

Please sign in to comment.