theUpdateFlags = UF_Model;
+ // the polyline should be rebuild in all viewers, where it is displayed
+ theUpdateFlags |= UF_Viewer | UF_GV_Forced;
+ theUpdateFlags |= UF_OCCViewer | UF_OCC_Forced;
+
size_t anActiveViewId = HYDROGUI_Tool::GetActiveGraphicsViewId( module() );
- if ( anActiveViewId != 0 )
- {
- theUpdateFlags |= UF_Viewer | UF_GV_Forced;
- }
- else
+ if ( anActiveViewId == 0 )
{
anActiveViewId = HYDROGUI_Tool::GetActiveOCCViewId( module() );
- theUpdateFlags |= UF_OCCViewer | UF_OCC_Forced;
}
if( !myIsEdit )
{
CurveCreator_Displayer* aDisplayer = new CurveCreator_Displayer( aCtx );
myCurve->setDisplayer( aDisplayer );
- aDisplayer->display( myCurve->constructWire() );
+ aDisplayer->display( myCurve->constructWire(), true );
}
}
}
Handle(AIS_InteractiveContext) aCtx = aViewer->getAISContext();
if( !aCtx.IsNull() )
{
- aDisplayer->erase();
+ aDisplayer->erase( true );
}
}
}