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 )