From 7258dbf5f08b4c4d0d06246bedf9e3d44b920642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20PIERRE?= Date: Sun, 12 Jan 2025 01:38:41 +0100 Subject: [PATCH] Darkroom: on module drag and drop, flag the pipeline for rebuild before adding history item --- src/views/darkroom.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/darkroom.c b/src/views/darkroom.c index 474b14bd7059..876661234cbc 100644 --- a/src/views/darkroom.c +++ b/src/views/darkroom.c @@ -2172,6 +2172,9 @@ 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"); @@ -2179,8 +2182,6 @@ static void _on_drag_data_received(GtkWidget *widget, GdkDragContext *dc, gint x // 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); } }