Commit 071a5f43 authored by Francois Bertel's avatar Francois Bertel

COMP:Fixed warning C4800. forcing value to bool 'true' or 'false' (performance warning)

parent 0e25b4a5
......@@ -31,7 +31,7 @@
#include "vtkDefaultPainter.h"
vtkStandardNewMacro(vtkCompositePolyDataMapper2);
vtkCxxRevisionMacro(vtkCompositePolyDataMapper2, "1.3");
vtkCxxRevisionMacro(vtkCompositePolyDataMapper2, "1.4");
//----------------------------------------------------------------------------
vtkCompositePolyDataMapper2::vtkCompositePolyDataMapper2()
{
......@@ -107,7 +107,7 @@ void vtkCompositePolyDataMapper2::RenderPiece(vtkRenderer* ren, vtkActor* act)
{
this->Painter->SetInput(inputDO);
}
this->Painter->Render(ren, act, 0xff,this->ForceCompileOnly);
this->Painter->Render(ren, act, 0xff,this->ForceCompileOnly==1);
this->TimeToDraw = this->Painter->GetTimeToDraw();
}
......
......@@ -36,7 +36,7 @@
#include "vtkStandardPolyDataPainter.h"
vtkStandardNewMacro(vtkPainterPolyDataMapper);
vtkCxxRevisionMacro(vtkPainterPolyDataMapper, "1.17")
vtkCxxRevisionMacro(vtkPainterPolyDataMapper, "1.18")
//-----------------------------------------------------------------------------
class vtkPainterPolyDataMapperObserver : public vtkCommand
......@@ -316,7 +316,7 @@ void vtkPainterPolyDataMapper::RenderPiece(vtkRenderer* ren, vtkActor* act)
{
this->Painter->SetInput(input);
}
this->Painter->Render(ren, act, 0xff,this->ForceCompileOnly);
this->Painter->Render(ren, act, 0xff,this->ForceCompileOnly==1);
this->TimeToDraw = this->Painter->GetTimeToDraw();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment