Skip to content

Commit 344baf4

Browse files
masterpigaTurboGit
authored andcommitted
Fixes bug in retouch module w/ blending enable.
1 parent f517020 commit 344baf4

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

src/develop/pixelpipe_hb.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,12 +1241,13 @@ static inline gboolean _piece_fast_blend(const dt_dev_pixelpipe_iop_t *piece,
12411241
const dt_iop_module_t *module)
12421242
{
12431243
return dt_pipe_is_canvas(piece->pipe)
1244-
&& darktable.pipe_cache
1245-
&& module->dev
1246-
&& module->dev->gui_attached
1247-
&& module == module->dev->gui_module
1248-
&& dt_dev_modulegroups_test_activated(darktable.develop)
1249-
&& _transform_for_blend(module, piece);
1244+
&& darktable.pipe_cache
1245+
&& dt_iop_has_focus(module)
1246+
// IOP_FLAGS_NO_MASKS modules (retouch, spots) consume their drawn forms
1247+
// inside process(), so the cached output depends on shape geometry that
1248+
// the fast-blend hash ignores. Skip the fast path for them.
1249+
&& !(module->flags() & IOP_FLAGS_NO_MASKS)
1250+
&& _transform_for_blend(module, piece);
12501251
}
12511252

12521253
static inline float *_get_fast_blendcache(const size_t nfloats,

0 commit comments

Comments
 (0)