From ba013af1a3f98da623e2bd4012ecc604a46326cb Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Wed, 27 Nov 2024 13:06:36 +0100 Subject: [PATCH] sculpt_manager: handle manual fb config w/o mirror config node gracefully. If no mirror is set, ever claim one entry as the mirrored one. Without this change, the current effect is that the UI does not allow to merge one of the discrete modes. Issue #5392 --- repos/gems/src/app/sculpt_manager/model/fb_config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/repos/gems/src/app/sculpt_manager/model/fb_config.h b/repos/gems/src/app/sculpt_manager/model/fb_config.h index aaca4ed9a6..2d2f346e06 100644 --- a/repos/gems/src/app/sculpt_manager/model/fb_config.h +++ b/repos/gems/src/app/sculpt_manager/model/fb_config.h @@ -192,6 +192,10 @@ struct Sculpt::Fb_config /* import discrete nodes */ add_connectors(config); + + /* handle case that manual config contains solely discrete items */ + if (count && !_num_merged) + _num_merged = 1; } void apply_connectors(Fb_connectors const &connectors)