mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-24 16:30:34 +05:00
IPAL21003 Impossible create group from existing group shown only
This commit is contained in:
parent
cd3124ccaa
commit
72c8afe581
@ -2205,12 +2205,10 @@ bool SMESHGUI_GroupDlg::SetAppropriateActor()
|
|||||||
// iterate on all actors in current view window, search for
|
// iterate on all actors in current view window, search for
|
||||||
// any visible actor, that belongs to group or submesh of current mesh
|
// any visible actor, that belongs to group or submesh of current mesh
|
||||||
vtkActorCollection *aCollection = aViewWindow->getRenderer()->GetActors();
|
vtkActorCollection *aCollection = aViewWindow->getRenderer()->GetActors();
|
||||||
aCollection->InitTraversal();
|
int nbItems = aCollection->GetNumberOfItems();
|
||||||
for (vtkActor *anAct = aCollection->GetNextActor();
|
for (int i=0; i<nbItems; i++)
|
||||||
anAct && !isActor;
|
|
||||||
anAct = aCollection->GetNextActor())
|
|
||||||
{
|
{
|
||||||
SMESH_Actor *anActor = dynamic_cast<SMESH_Actor*>(anAct);
|
SMESH_Actor *anActor = dynamic_cast<SMESH_Actor*>(aCollection->GetItemAsObject(i));
|
||||||
if (anActor && anActor->hasIO()) {
|
if (anActor && anActor->hasIO()) {
|
||||||
Handle(SALOME_InteractiveObject) anIO = anActor->getIO();
|
Handle(SALOME_InteractiveObject) anIO = anActor->getIO();
|
||||||
if (aViewWindow->isVisible(anIO)) {
|
if (aViewWindow->isVisible(anIO)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user