Skip to content
Snippets Groups Projects
Commit da9bbb03 authored by Julien Michel's avatar Julien Michel
Browse files

ENH: (Visu Refactoring) Adding proper modify statement in setFunction()

parent d817523b
No related branches found
No related tags found
No related merge requests found
......@@ -132,8 +132,11 @@ public:
*/
void SetBlendingFunction(BlendingFunctionType * function)
{
this->GetFunctor().SetFunction(function);
this->Modified();
if(function != this->GetFunctor().GetFunction())
{
this->GetFunctor().SetFunction(function);
this->Modified();
}
}
/**
......
......@@ -153,8 +153,11 @@ public:
*/
void SetRenderingFunction(RenderingFunctionType * function)
{
this->GetFunctor().SetFunction(function);
this->Modified();
if(function != this->GetFunctor().GetFunction())
{
this->GetFunctor().SetFunction(function);
this->Modified();
}
}
/**
......
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