From: vsv Date: Fri, 5 Jun 2015 16:11:38 +0000 (+0300) Subject: Restore color of selection of symbol constraints X-Git-Tag: V_1.3.0~271 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f1c746a9b4efd5eeefb724732f8254eed2729353;p=modules%2Fshaper.git Restore color of selection of symbol constraints --- diff --git a/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp b/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp index 4d160d1ec..798b17007 100644 --- a/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp +++ b/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp @@ -421,6 +421,11 @@ void SketcherPrs_SymbolPrs::Render(const Handle(OpenGl_Workspace)& theWorkspace) if (theWorkspace->NamedStatus & OPENGL_NS_HIGHLIGHT) aLineColor = theWorkspace->HighlightColor; + if (toHilight) + aCtx->core11fwd->glDisable (GL_LIGHTING); + else + aCtx->core11fwd->glEnable (GL_LIGHTING); + aCtx->SetColor4fv(*(const OpenGl_Vec4* )(aLineColor->rgb));