mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 00:28:59 +08:00
Follow-up of 5b2e2fe7b3956fc13b8ce8e0e35db4d3278c50a8 -> Fixed uv mapping on gizmobar
This commit is contained in:
parent
ca950d1a00
commit
5a63b9a6a0
@ -886,7 +886,7 @@ void GLGizmosManager::do_render_overlay() const
|
||||
#else
|
||||
float du = (float)(tex_width - 1) / (3.0f * (float)tex_width); // 3 is the number of possible states if the icons
|
||||
#endif // ENABLE_GIZMO_ICONS_NON_ACTIVABLE_STATE
|
||||
float dv = (float)(tex_height - 1) / (float)(selectable_idxs.size() * tex_height);
|
||||
float dv = (float)(tex_height - 1) / (float)(m_gizmos.size() * tex_height);
|
||||
|
||||
// tiles in the texture are spaced by 1 pixel
|
||||
float u_offset = 1.0f / (float)tex_width;
|
||||
|
Loading…
x
Reference in New Issue
Block a user