From 3c9bde2b20a4423f56c97664fa295804a8990fa6 Mon Sep 17 00:00:00 2001 From: ouv Date: Mon, 10 Oct 2005 08:28:06 +0000 Subject: [PATCH] *** empty log message *** --- src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx b/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx index 8ab150a4..2f6b4e49 100755 --- a/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx +++ b/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx @@ -771,7 +771,7 @@ void VISU_OpenGLPointSpriteMapper::DrawPoints(int idx, aVertex[i].vy = p->GetPoint( pts[0] )[1]; aVertex[i].vz = p->GetPoint( pts[0] )[2]; - if( colors ) + if( colors && this->PointSpriteResults ) { unsigned char *col = colors->GetPointer(pts[0]<< 2); aVertex[i].r = ( ( int )col[0] ) / 255.0; @@ -855,6 +855,7 @@ int VISU_OpenGLPointSpriteMapper::Draw(vtkRenderer *aren, vtkActor *act) // are they cell or point scalars if ( this->Colors ) { + cout << 111 << endl; colors = this->Colors; if ( (this->ScalarMode == VTK_SCALAR_MODE_USE_CELL_DATA || this->ScalarMode == VTK_SCALAR_MODE_USE_CELL_FIELD_DATA || @@ -864,6 +865,8 @@ int VISU_OpenGLPointSpriteMapper::Draw(vtkRenderer *aren, vtkActor *act) cellScalars = 1; } } + else + cout << 222 << endl; unsigned long idx = 0; if (colors) -- 2.39.2