Commit 000abc66 authored by Bill Lorensen's avatar Bill Lorensen
Browse files

ERR: Print method failing on NULL ivars.

parent 87059513
......@@ -144,9 +144,38 @@ void vtkRIBProperty::PrintSelf(ostream& os, vtkIndent indent)
{
vtkProperty::PrintSelf(os,indent);
os << indent << "SurfaceShader: " << this->SurfaceShader << "\n";
os << indent << "DisplacementShader: " << this->SurfaceShader << "\n";
os << indent << "Declarations: " << this->Declarations << "\n";
os << indent << "Parameters: " << this->Parameters << "\n";
if (this->SurfaceShader)
{
os << indent << "SurfaceShader: " << this->SurfaceShader << "\n";
}
else
{
os << indent << "SurfaceShader: (none)\n";
}
if (this->DisplacementShader)
{
os << indent << "DisplacementShader: " << this->DisplacementShader << "\n";
}
else
{
os << indent << "DisplacementShader: (none)\n";
}
if (this->Declarations)
{
os << indent << "Declarations: " << this->Declarations << "\n";
}
else
{
os << indent << "Declarations: (none)\n";
}
if (this->Parameters)
{
os << indent << "Parameters: " << this->Parameters << "\n";
}
else
{
os << indent << "Parameters: (none)\n";
}
}
Supports Markdown
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