mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 09:02:06 +00: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>
(cherry picked from commit 8fd4477110)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user