fix(Heightmap): flat for bed mesh not displayed if only one probe count set (#1146)

fixes https://github.com/mainsail-crew/mainsail/issues/1132
This commit is contained in:
th33xitus 2022-11-10 23:21:20 +01:00 committed by GitHub
parent 4760b9d9f1
commit 6f8cfaa276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -866,7 +866,8 @@ export default class PageHeightmap extends Mixins(BaseMixin, ControlMixin) {
if (config.probe_count && typeof config.probe_count === 'string') {
probe_count = config.probe_count.split(',')
} else if (config.probe_count) {
probe_count = config.probe_count
probe_count =
config.probe_count.length < 2 ? [config.probe_count, config.probe_count] : config.probe_count
} else if (config.round_probe_count) {
probe_count = [config.round_probe_count, config.round_probe_count]
}