From 147fd7506c64abc026ad8af26ac3159d35ec2f9f Mon Sep 17 00:00:00 2001 From: ouv Date: Mon, 6 Sep 2010 13:19:03 +0000 Subject: [PATCH] Improvement of selection mechanism --- src/GLViewer/GLViewer_Context.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GLViewer/GLViewer_Context.cxx b/src/GLViewer/GLViewer_Context.cxx index e76eb0ea9..a359518b6 100644 --- a/src/GLViewer/GLViewer_Context.cxx +++ b/src/GLViewer/GLViewer_Context.cxx @@ -106,7 +106,8 @@ int GLViewer_Context::MoveTo( int xi, int yi, bool byCircle ) GLViewer_Object* object = *it; GLViewer_Rect* rect = object->getUpdateRect(); - if( rect->contains( GLViewer_Pnt( x, y ) ) ) + if( object->isSelectable() && + rect->contains( GLViewer_Pnt( x, y ) ) ) { onObject = GL_TRUE; object->highlight( x, y, myTolerance, GL_FALSE ); -- 2.39.2