fix compile errors in uLib env

This commit is contained in:
AndreaRigoni
2026-04-03 12:58:36 +00:00
parent 9d6301319b
commit bb24f13fba
7 changed files with 26 additions and 11 deletions

View File

@@ -183,7 +183,7 @@ public:
vtkPolyData* polydata = nullptr;
if (vtkActor *actor = vtkActor::SafeDownCast(m_Prop)) {
if (actor->GetMapper()) {
polydata = vtkPolyData::SafeDownCast(actor->GetMapper()->GetDataSetInput());
polydata = vtkPolyData::SafeDownCast(actor->GetMapper()->GetInput());
}
} else if (vtkAssembly *asm_p = vtkAssembly::SafeDownCast(m_Prop)) {
vtkPropCollection *parts = asm_p->GetParts();
@@ -192,7 +192,7 @@ public:
for (int i = 0; i < parts->GetNumberOfItems(); ++i) {
vtkActor *a = vtkActor::SafeDownCast(parts->GetNextProp());
if (a && a->GetMapper()) {
polydata = vtkPolyData::SafeDownCast(a->GetMapper()->GetDataSetInput());
polydata = vtkPolyData::SafeDownCast(a->GetMapper()->GetInput());
if (polydata) break;
}
}