Commit 2f35c2fa authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

do not reset camera in render

parent a675f917
......@@ -64,7 +64,6 @@ void dtkVisualizationDecorator::drawAndForward(void)
d->next->drawAndForward();
} else {
if(!this->canvas()) return;
this->canvas()->renderer()->ResetCamera();
this->canvas()->renderer()->GetRenderWindow()->Render();
}
}
......@@ -75,14 +74,21 @@ void dtkVisualizationDecorator::setData(const QVariant& v)
if(d->next)
d->next->setData(v);
if(!this->canvas())
return;
this->canvas()->renderer()->ResetCamera();
}
void dtkVisualizationDecorator::setCanvas(dtkVisualizationCanvas *c)
{
d->canvas = c;
if(d->next)
d->next->setCanvas(c);
c->renderer()->ResetCamera();
}
void dtkVisualizationDecorator::unsetCanvas(void)
......
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