mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 22:49:04 +08:00
Follow-up to 263b23fb468a4d0981de8ecf590cfd5f6d4edbb6: Fixed an assert.
This commit is contained in:
parent
263b23fb46
commit
f95a6e3d33
@ -637,7 +637,7 @@ bool PrintObject::invalidate_state_by_config_options(
|
||||
|
||||
const auto *old_fill_pattern = old_config.option<ConfigOptionEnum<InfillPattern>>(opt_key);
|
||||
const auto *new_fill_pattern = new_config.option<ConfigOptionEnum<InfillPattern>>(opt_key);
|
||||
assert(old_infill && new_infill);
|
||||
assert(old_fill_pattern && new_fill_pattern);
|
||||
// We need to recalculate infill surfaces when infill_only_where_needed is enabled, and we are switching from
|
||||
// the Lightning infill to another infill or vice versa.
|
||||
if (m_config.infill_only_where_needed && (new_fill_pattern->value == ipLightning || old_fill_pattern->value == ipLightning))
|
||||
|
Loading…
x
Reference in New Issue
Block a user