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
This commit is contained in:
Alexander Boettcher 2024-11-27 13:06:36 +01:00 committed by Christian Helmuth
parent e520dbbb7e
commit ba013af1a3

View File

@ -192,6 +192,10 @@ struct Sculpt::Fb_config
/* import discrete nodes */ /* import discrete nodes */
add_connectors(config); 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) void apply_connectors(Fb_connectors const &connectors)