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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue