Skip to content
Snippets Groups Projects
Commit acf8b073 authored by Ken Martin's avatar Ken Martin Committed by Kitware Robot
Browse files

Merge topic 'fix_gaussianmapper_bug'


9d16424b fix an issue with the opengl2 point gaussian mapper

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: default avatarUtkarsh Ayachit <utkarsh.ayachit@kitware.com>
Merge-request: !2670
parents dfad0b71 9d16424b
No related branches found
No related tags found
No related merge requests found
......@@ -698,7 +698,7 @@ void vtkOpenGLPointGaussianMapperHelper::BuildBufferObjects(
vtkFloatArray *pts = vtkFloatArray::New();
pts->SetNumberOfComponents(3);
pts->SetNumberOfTuples(splatCount * 3);
pts->SetNumberOfTuples(splatCount);
switch(poly->GetPoints()->GetDataType())
{
vtkTemplateMacro(
......@@ -717,7 +717,7 @@ void vtkOpenGLPointGaussianMapperHelper::BuildBufferObjects(
{
vtkFloatArray *offsets = vtkFloatArray::New();
offsets->SetNumberOfComponents(2);
offsets->SetNumberOfTuples(splatCount * 3);
offsets->SetNumberOfTuples(splatCount);
if (hasScaleArray)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment