mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-19 15:03:05 +00:00
Fix Design tab not painting on hardware GL after a page switch
request_repaint() only invalidates the canvas (Refresh()) on the hardware-GL path and relies on a wxEVT_PAINT to follow. When the notebook re-shows the Design page, that invalidation is issued mid-show and dropped: no paint event arrives, the canvas never renders, and the pane stays blank until another tab switch forces an expose. Software GL renders directly, so it never showed there. force_repaint() defers past the show, then Refresh() + Update() for a synchronous paint. Called from on_tab_shown(). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BVzKmX6Y1aEteit1HTXG4Q
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
343a0439f1
commit
6d9368276c
@@ -3196,6 +3196,7 @@ void DesignPanel::on_tab_shown()
|
||||
}
|
||||
}
|
||||
update_reference_planes(); // entering the Design tab: show the XY/XZ/YZ planes if no object yet
|
||||
if (m_viewport) m_viewport->force_repaint(); // the page was just re-shown: paint it for real
|
||||
}
|
||||
|
||||
void DesignPanel::load_recipe(const std::string& blob)
|
||||
|
||||
Reference in New Issue
Block a user