From 9b11dfd4d4357c39b9948ca5289e200b7100bbe6 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Thu, 8 Feb 2024 15:19:54 +0300 Subject: [PATCH] Fix 3D viewer getting stuck or rendering twice when dragging, at least on GTK. --- 3d-viewer/3d_canvas/eda_3d_canvas.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3d-viewer/3d_canvas/eda_3d_canvas.cpp b/3d-viewer/3d_canvas/eda_3d_canvas.cpp index c157a7752e..4d3ba6aec4 100644 --- a/3d-viewer/3d_canvas/eda_3d_canvas.cpp +++ b/3d-viewer/3d_canvas/eda_3d_canvas.cpp @@ -2,7 +2,7 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2015-2016 Mario Luzeiro - * Copyright (C) 1992-2023 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 1992-2024 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -838,7 +838,7 @@ void EDA_3D_CANVAS::OnTimerTimeout_Redraw( wxTimerEvent& aEvent ) void EDA_3D_CANVAS::OnRefreshRequest( wxEvent& aEvent ) { - DoRePaint(); + Refresh(); }