Fix for bug PAL13475(Wrong selection of objects after Display/Erase from Python console/module).

This commit is contained in:
mzn 2006-09-21 13:16:53 +00:00
parent 8480689ba0
commit 05b0981f07

View File

@ -439,7 +439,7 @@ void GEOM_Swig::setColor(const char* theEntry, int red, int green, int blue, boo
ite.Value()->SetColor(CSFColor); ite.Value()->SetColor(CSFColor);
if (ite.Value()->IsKind(STANDARD_TYPE(GEOM_AISShape))) if (ite.Value()->IsKind(STANDARD_TYPE(GEOM_AISShape)))
Handle(GEOM_AISShape)::DownCast(ite.Value())->SetShadingColor(CSFColor); Handle(GEOM_AISShape)::DownCast(ite.Value())->SetShadingColor(CSFColor);
ite.Value()->Redisplay(Standard_True); ic->Redisplay(ite.Value(), true, true);
if (myUpdateViewer) if (myUpdateViewer)
occViewer->update(); occViewer->update();
break; break;