Skip to content

Commit

Permalink
Fix commiting masks to retouch
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelienpierre committed Jan 19, 2025
1 parent b3efa86 commit 43e3443
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/develop/develop.c
Original file line number Diff line number Diff line change
Expand Up @@ -957,16 +957,16 @@ void dt_dev_add_history_item_real(dt_develop_t *dev, dt_iop_module_t *module, gb

dt_dev_undo_start_record(dev);

// Run the delayed post-commit actions if implemented
if(module && module->post_history_commit) module->post_history_commit(module);

dt_pthread_mutex_lock(&dev->history_mutex);
dt_dev_add_history_item_ext(dev, module, enable, FALSE, FALSE, FALSE);
dt_pthread_mutex_unlock(&dev->history_mutex);

/* signal that history has changed */
dt_dev_undo_end_record(dev);

// Run the delayed post-commit actions if implemented
if(module && module->post_history_commit) module->post_history_commit(module);

// Figure out if the current history item includes masks/forms
GList *last_history = g_list_nth(dev->history, dt_dev_get_history_end(dev) - 1);
dt_dev_history_item_t *hist = NULL;
Expand Down

0 comments on commit 43e3443

Please sign in to comment.