mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-27 15:49:52 -05:00
* Load startup plugins after the presets are loaded The startup plugin loads ran on the load thread while the main thread was still starting the network and had not loaded the presets yet. A plugin that reads the presets while it registers, such as through full_config_value(), reached PresetBundle::full_fff_config() while filament_presets was still empty and crashed reading filament_presets[0]. A plugin that got there a little later read the presets while load_presets() was rebuilding them. Start the startup loads after load_current_presets(). A printer agent that a plugin registers after that point is already installed by the late registration path. Fixes #17792 * Build the full config of a bundle whose presets are not loaded yet A new PresetBundle has no filament_presets until load_presets() runs, and full_fff_config() read filament_presets[0] anyway, which crashed any caller that asked for the full config before the presets loaded. Treat such a bundle as having one filament, the edited filament preset.
OrcaSlicer tests
Building, running and writing tests is documented on the wiki, under How to Test.
Two files here rather than there, because coding agents only read what is in the repository: