Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Fix crash when click the color paint gizmo when object part is select…
Browse files Browse the repository at this point in the history
…ed (SoftFever#3405)

Fix crash when click the color paint gizmo when object part is selected (SoftFever#3404)

Cherry-picked from bambulab/BambuStudio@1e99ce9

Co-authored-by: liz.li <[email protected]>
(cherry picked from commit 8fd4477)
  • Loading branch information
Noisyfox authored and SoftFever committed Jan 1, 2024
1 parent 2511360 commit 7ddaa8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/slic3r/GUI/Gizmos/GLGizmosCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 7ddaa8d

Please sign in to comment.