if ( myContext.IsNull() )
return;
+ bool isDeactivateSelection = false;
// Try to retrieve information from object
if ( !myObject.IsNull() )
{
setTextureFileName( aTextureFileName, false, false );
setFace( aWire, false, false );
+ isDeactivateSelection = true;
}
else if ( myObject->IsKind( STANDARD_TYPE(HYDROData_Profile) ) )
{
return;
myContext->Display( myShape, theIsUpdateViewer );
+ if (isDeactivateSelection)
+ myContext->Deactivate(myShape);
}
void HYDROGUI_Shape::setVisible( const bool theState,
myContext->Erase( myShape, theIsUpdateViewer );
}
-void HYDROGUI_Shape::highlight( bool theIsHighlight )
+void HYDROGUI_Shape::highlight( bool theIsHighlight, bool isUpdateViewer )
{
if ( myIsHighlight == theIsHighlight )
return;
return;
colorShapeBorder( getActiveColor() );
- myContext->Display( myShape );
+ myContext->Display( myShape, isUpdateViewer );
}
bool HYDROGUI_Shape::isHighlighted() const
Handle(Prs3d_LineAspect) aBoundaryAspect = anAttributes->FaceBoundaryAspect();
if ( !aBoundaryAspect.IsNull() )
+ {
aBoundaryAspect->SetColor( aBorderColor );
+ anAttributes->SetFaceBoundaryAspect( aBoundaryAspect );
+ }
}
}
else if ( myDisplayMode == AIS_WireFrame )