mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Fix random crash when opening 3mf files that have bed size different than current (#7955)
* Fix bed raycast id * Fix bed raycaster UAF crash due to bed resizing
This commit is contained in:
parent
b488fdecec
commit
a3de7cf0bd
5 changed files with 5 additions and 5 deletions
|
@ -4396,7 +4396,9 @@ std::vector<size_t> Plater::priv::load_files(const std::vector<fs::path>& input_
|
|||
|
||||
cur_plate->translate_all_instance(new_origin - cur_origin);
|
||||
}
|
||||
view3D->get_canvas3d()->remove_raycasters_for_picking(SceneRaycaster::EType::Bed);
|
||||
partplate_list.reset_size(current_width, current_depth, current_height, true, true);
|
||||
partplate_list.register_raycasters_for_picking(*view3D->get_canvas3d());
|
||||
}
|
||||
|
||||
//BBS: add gcode loading logic in the end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue