Skip to content
Snippets Groups Projects
Commit 430b6208 authored by Andrew Heather's avatar Andrew Heather
Browse files

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

parent 47036d4f
Branches
Tags
No related merge requests found
......@@ -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;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment