Commit 7247c933 authored by Andreas Buykx's avatar Andreas Buykx
Browse files

vtkLight DeepCopy method copies all member data

The deep copy method of vtkLight did not copy all member data,
causing the copy to yield very different lighting.
parent 95502905
......@@ -249,6 +249,10 @@ void vtkLight::DeepCopy(vtkLight *light)
this->SetExponent(light->GetExponent());
this->SetConeAngle(light->GetConeAngle());
this->SetAttenuationValues(light->GetAttenuationValues());
this->SetLightType(light->GetLightType());
this->SetTransformMatrix(light->GetTransformMatrix());
this->SetShadowAttenuation(light->GetShadowAttenuation());
this->SetInformation(light->GetInformation());
}
void vtkLight::SetLightType(int type)
......
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