From 0a4d325f854108ef1e960d7b5ed4f176ca116f46 Mon Sep 17 00:00:00 2001 From: Garux Date: Tue, 15 May 2018 02:55:05 +0300 Subject: [PATCH] fix slow mass (de)selection in clipper mode --- radiant/clippertool.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/radiant/clippertool.cpp b/radiant/clippertool.cpp index 3c0e12ed..44ac3c89 100644 --- a/radiant/clippertool.cpp +++ b/radiant/clippertool.cpp @@ -71,14 +71,8 @@ void Clipper_setPlanePoints( const ClipperPoints& points ){ Clipper_update(); } -void Clipper_SelectionChanged( const Selectable& selectable ){ -// globalOutputStream() << " Clipper_SelectionChanged\n"; - if ( Clipper_ok() ) - Clipper_update(); -} #include "gtkutil/idledraw.h" void Clipper_BoundsChanged(){ -// globalOutputStream() << " Clipper_BoundsChanged\n"; if ( Clipper_ok() ) Clipper_update(); } @@ -89,6 +83,10 @@ void Clipper_BoundsChanged_Queue(){ g_idle_clipper_update.queueDraw(); } +void Clipper_SelectionChanged( const Selectable& selectable ){ + Clipper_BoundsChanged_Queue(); +} + void Clipper_modeChanged( bool isClipper ){ GdkCursor* cursor = isClipper? g_clipper_cursor : 0;