void HYDROGUI_Shape::setShape( const TopoDS_Shape& theShape,
const bool theToDisplay,
- const bool theIsUpdateViewer )
+ const bool theIsUpdateViewer,
+ const int theDisplayMode )
{
myTopoShape = theShape;
- myDisplayMode = AIS_Shaded;
+ myDisplayMode = theDisplayMode;
buildShape();
updateShape( theToDisplay, theIsUpdateViewer );
const Handle(Prs3d_Drawer)& anAttributes = myShape->Attributes();
if ( !anAttributes.IsNull() )
{
- if ( myDisplayMode == AIS_Shaded )
+ if ( myDisplayMode == AIS_Shaded && myFillingColor.isValid() )
{
Quantity_Color aFillingColor( getQuantityColorVal( myFillingColor.red() ),
getQuantityColorVal( myFillingColor.green() ),