mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 03:37:35 +08:00
Fixed the possibility of changing brush size in the multi-material gizmo by ALT+mouse wheel when brush for painting single triangles is selected.
This commit is contained in:
parent
17860fb38a
commit
cf2a7f4dfa
@ -283,7 +283,7 @@ bool GLGizmoPainterBase::gizmo_event(SLAGizmoEventType action, const Vec2d& mous
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (alt_down) {
|
else if (alt_down) {
|
||||||
if (m_tool_type == ToolType::BRUSH) {
|
if (m_tool_type == ToolType::BRUSH && (m_cursor_type == TriangleSelector::CursorType::SPHERE || m_cursor_type == TriangleSelector::CursorType::CIRCLE)) {
|
||||||
m_cursor_radius = action == SLAGizmoEventType::MouseWheelDown ? std::max(m_cursor_radius - CursorRadiusStep, CursorRadiusMin)
|
m_cursor_radius = action == SLAGizmoEventType::MouseWheelDown ? std::max(m_cursor_radius - CursorRadiusStep, CursorRadiusMin)
|
||||||
: std::min(m_cursor_radius + CursorRadiusStep, CursorRadiusMax);
|
: std::min(m_cursor_radius + CursorRadiusStep, CursorRadiusMax);
|
||||||
m_parent.set_as_dirty();
|
m_parent.set_as_dirty();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user