From: admin Date: Wed, 22 Dec 2004 11:30:36 +0000 (+0000) Subject: Initial version of files for OCC developers X-Git-Tag: OCC_initial_01 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ee6015f3b42378bf766a0292f031fe4ec7d4d365;p=modules%2Fvisu.git Initial version of files for OCC developers --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 12229e66..ee34ad50 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -3974,6 +3974,8 @@ VISU_Actor* VisuGUI::UpdateViewer(VISU::Prs3d_i* thePrs, bool theDispOnly){ VISU_Actor* aResActor = NULL; VISU::Prs3d_i* aSrcAddr = thePrs; for(anActColl->InitTraversal(); (anActor = anActColl->GetNextActor()) != NULL; ){ + if(!SALOME_Actor::SafeDownCast(anActor)) + continue; if(anActor->IsA("VISU_Actor")){ anVISUActor = VISU_Actor::SafeDownCast(anActor); VISU::Prs3d_i* aPrs = anVISUActor->GetPrs3d();