修复了网格隐藏模型被选择的 bug

pull/1/head
剑古敛锋 2024-07-18 11:02:56 +08:00
parent 848b29f97f
commit a3cf62325a
1 changed files with 19 additions and 7 deletions

View File

@ -440,8 +440,11 @@ namespace ModuleBase
{ {
vtkActor *actor = actors->GetNextActor(); vtkActor *actor = actors->GetNextActor();
if (actor == nullptr) if (actor == nullptr)
if (!actor->GetVisibility()) continue;
continue; if (!(actor->GetVisibility())) {
qDebug() << "Hide actor\n";
continue;
}
if (!actor->GetPickable()) if (!actor->GetPickable())
continue; continue;
vtkMapper *mapper = actor->GetMapper(); vtkMapper *mapper = actor->GetMapper();
@ -477,8 +480,11 @@ namespace ModuleBase
{ {
vtkActor *actor = actors->GetNextActor(); vtkActor *actor = actors->GetNextActor();
if (actor == nullptr) if (actor == nullptr)
if (!actor->GetVisibility()) continue;
if (!(actor->GetVisibility())) {
qDebug() << "Hide actor\n";
continue; continue;
}
if (!actor->GetPickable()) if (!actor->GetPickable())
continue; continue;
vtkMapper *mapper = actor->GetMapper(); vtkMapper *mapper = actor->GetMapper();
@ -508,8 +514,11 @@ namespace ModuleBase
{ {
vtkActor *actor = actors->GetNextActor(); vtkActor *actor = actors->GetNextActor();
if (actor == nullptr) if (actor == nullptr)
if (!actor->GetVisibility()) continue;
continue; if (!(actor->GetVisibility())) {
qDebug() << "Hide actor\n";
continue;
}
if (!actor->GetPickable()) if (!actor->GetPickable())
continue; continue;
vtkMapper *mapper = actor->GetMapper(); vtkMapper *mapper = actor->GetMapper();
@ -555,8 +564,11 @@ namespace ModuleBase
{ {
vtkActor *actor = actors->GetNextActor(); vtkActor *actor = actors->GetNextActor();
if (actor == nullptr) if (actor == nullptr)
if (!actor->GetVisibility()) continue;
continue; if (!(actor->GetVisibility())) {
qDebug() << "Hide actor\n";
continue;
}
if (!actor->GetPickable()) if (!actor->GetPickable())
continue; continue;
vtkMapper *mapper = actor->GetMapper(); vtkMapper *mapper = actor->GetMapper();