mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 21:58:03 -06:00
Fix crash when click the color paint gizmo when object part is selected (#3405)
Fix crash when click the color paint gizmo when object part is selected (#3404) Cherry-picked from bambulab/BambuStudio@1e99ce9535 Co-authored-by: liz.li <liz.li@bambulab.com>
This commit is contained in:
parent
60ab79cae0
commit
8fd4477110
1 changed files with 3 additions and 1 deletions
|
@ -110,7 +110,9 @@ void SelectionInfo::on_update()
|
|||
|
||||
m_model_object = nullptr;
|
||||
|
||||
if (selection.is_single_full_instance()) {
|
||||
// BBS still keep object pointer when selection is volume
|
||||
// if (selection.is_single_full_instance()) {
|
||||
if (!selection.is_empty()) {
|
||||
m_model_object = selection.get_model()->objects[selection.get_object_idx()];
|
||||
m_z_shift = selection.get_first_volume()->get_sla_shift_z();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue