Update CGEditor+debug

This commit is contained in:
Loic Guegan 2023-01-02 08:15:51 +01:00
parent dd24427d81
commit 4f2c68de60
3 changed files with 3 additions and 9 deletions

View file

@ -216,13 +216,7 @@ void EditorCanvas::MouseEvent(wxMouseEvent &event) {
// Handle editor events
Update();
bool need_redraw=false;
for(auto event: status.Events){
HandleEvent(event);
need_redraw=true;
}
if(need_redraw){
status.Events.clear();
if(ProcessEvents()){
Refresh();
Update();
}