mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-03 06:35:21 +01:00
fix(editor): the keys of the line of the brush only while the brush is the one along a line
Points left from a line, after a switch to the circle or to the single model, were put by Enter there, and Backspace and Esc took them back unseen. Enter, Backspace and Esc now act on the line only while the brush is the one of many models along a line (brush_on_line()). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QRgQ1K1Qu7TCsa74zsNURd
This commit is contained in:
@@ -173,6 +173,12 @@ void editor_mode::end_brush_stroke()
|
||||
ui()->set_status(format(STR_C("Brush: %zu models put; Ctrl+Z takes the whole stroke back"), count));
|
||||
}
|
||||
|
||||
bool editor_mode::brush_on_line()
|
||||
{
|
||||
auto const &settings{ui()->brush()};
|
||||
return ui()->mode() == nodebank_panel::BRUSH && settings.way == brush_object_list::kind::multi && settings.stroke == brush_object_list::shape::line;
|
||||
}
|
||||
|
||||
void editor_mode::brush_line_point()
|
||||
{
|
||||
if (false == viewport_click())
|
||||
|
||||
Reference in New Issue
Block a user