Commit 6b9c7618 authored by Bill Lorensen's avatar Bill Lorensen

BUG: ImagePlaneWidget TextureVisibility

Only turn on texture if TextureVisibility is true AND ImageData is
not null. Otherwise, OpenGLPolyDataMapper will crash.
parent e64f9423
Pipeline #7346 passed with stage
......@@ -246,7 +246,7 @@ void vtkImagePlaneWidget::SetTextureVisibility(int vis)
if ( this->Enabled )
{
if (this->TextureVisibility)
if (this->TextureVisibility && this->ImageData)
{
this->CurrentRenderer->AddViewProp(this->TexturePlaneActor);
}
......@@ -304,7 +304,7 @@ void vtkImagePlaneWidget::SetEnabled(int enabling)
this->PlaneOutlineActor->SetProperty(this->PlaneProperty);
//add the TexturePlaneActor
if (this->TextureVisibility)
if (this->TextureVisibility && this->ImageData)
{
this->CurrentRenderer->AddViewProp(this->TexturePlaneActor);
}
......
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