18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-20 08:04:57 +01:00

fix(editor): the drawn cursor is the editor's: off when it's left, back on when it's entered

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DDcMn1Q7wdYkbxDUWscNHZ
This commit is contained in:
Claude
2026-11-11 11:34:38 +01:00
parent be7f9e4712
commit b691ef4d20
2 changed files with 10 additions and 2 deletions

View File

@@ -240,6 +240,7 @@ class editor_mode : public application_mode, private editor_track::observer, pri
bool m_dragging = false;
glm::dvec3 oldPos; // world position of the last brush placement
bool m_brush_has_last{false}; // false at the start of a brush stroke, so the first placement ignores spacing
bool m_draw_cursor{false}; // the cursor drawn into the picture (View menu), on only while the editor is
bool mouseHold{false};
float kMaxPlacementDistance = 200.0f;
static bool m_change_history;