mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-06-27 13:06:30 +03:00
Another fix of the gizmo grabber color picking
This commit is contained in:
@@ -255,9 +255,9 @@ std::array<float, 3> GLGizmoBase::picking_color_component(unsigned int id) const
|
||||
if (m_group_id > -1)
|
||||
id -= m_group_id;
|
||||
|
||||
return std::array<float, 3> { (float)((id >> 16) & 0xff) * INV_255, // red
|
||||
return std::array<float, 3> { (float)((id >> 0) & 0xff) * INV_255, // red
|
||||
(float)((id >> 8) & 0xff) * INV_255, // green
|
||||
(float)(id & 0xff) * INV_255}; // blue
|
||||
(float)((id >> 16)& 0xff) * INV_255}; // blue
|
||||
}
|
||||
|
||||
void GLGizmoBase::render_grabbers(const BoundingBoxf3& box) const
|
||||
|
||||
Reference in New Issue
Block a user