]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Restore color of selection of symbol constraints
authorvsv <vitaly.smetannikov@opencascade.com>
Fri, 5 Jun 2015 16:11:38 +0000 (19:11 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Fri, 5 Jun 2015 16:11:38 +0000 (19:11 +0300)
src/SketcherPrs/SketcherPrs_SymbolPrs.cpp

index 4d160d1ecdf6d603f8e99e4df2e431e6203c8090..798b1700743a6be48e530fdd8aec98f09aa0502b 100644 (file)
@@ -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));