mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -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
|
@ -1348,8 +1348,7 @@ void PartPlate::register_raycasters_for_picking(GLCanvas3D &canvas)
|
|||
|
||||
int PartPlate::picking_id_component(int idx) const
|
||||
{
|
||||
unsigned int id = PLATE_BASE_ID - this->m_plate_index * GRABBER_COUNT - idx;
|
||||
return id;
|
||||
return this->m_plate_index * GRABBER_COUNT + idx;
|
||||
}
|
||||
|
||||
std::vector<int> PartPlate::get_extruders(bool conside_custom_gcode) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue