mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0028405: Visualization, V3d_Viewer - changes to Grid immediately updates view
V3d_Viewer methods ActivateGrid, DeactivateGrid, SetRectangularGridValues, SetCircularGridValues, RectangularGridGraphicValues, CircularGridGraphicValues, SetPrivilegedPlane, DisplayPrivilegedPlane do not redraw viewer anymore.
This commit is contained in:
@@ -4951,12 +4951,16 @@ static int VGrid (Draw_Interpretor& /*theDI*/,
|
||||
|
||||
Aspect_GridType aType = aViewer->GridType();
|
||||
Aspect_GridDrawMode aMode = aViewer->GridDrawMode();
|
||||
|
||||
ViewerTest_AutoUpdater anUpdateTool (ViewerTest::GetAISContext(), aView);
|
||||
Standard_Integer anIter = 1;
|
||||
for (; anIter < theArgNb; ++anIter)
|
||||
{
|
||||
const char* aValue = theArgVec[anIter];
|
||||
if (*aValue == 'r')
|
||||
if (anUpdateTool.parseRedrawMode (aValue))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else if (*aValue == 'r')
|
||||
{
|
||||
aType = Aspect_GT_Rectangular;
|
||||
}
|
||||
|
Reference in New Issue
Block a user