修复了网格隐藏模型被选择的 bug
parent
848b29f97f
commit
a3cf62325a
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue