mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-15 20:05:55 +08: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 8fd4477110cd88e12ceb26e4db67559de4163326)
This commit is contained in:
parent
2511360495
commit
7ddaa8d383
@ -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…
x
Reference in New Issue
Block a user