BUG: Run time post-processing - corrected surfaces rendered by colour. Fixes #97

This commit is contained in:
Andrew Heather
2016-06-10 15:21:48 +01:00
parent 47036d4fd4
commit 430b6208e6

View File

@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
\\/ M anipulation | Copyright (C) 2015-2016 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -124,7 +124,7 @@ void Foam::functionObjectSurface::addGeometryToScene
}
else
{
if ((colourBy_ == cbField) && (fName.ext() == "vtk"))
if (fName.ext() == "vtk")
{
vtkSmartPointer<vtkPolyDataReader> surf =
vtkSmartPointer<vtkPolyDataReader>::New();
@ -147,7 +147,9 @@ void Foam::functionObjectSurface::addGeometryToScene
}
else
{
geometrySurface::addGeometryToScene(position, renderer);
WarningInFunction
<< "Only VTK file types are supported"
<< endl;
}
}
}