Commit 1c7951db authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

fix behaviour when restoring settings and visibility is off

parent 860ac332
......@@ -435,10 +435,14 @@ void dtkVisualizationDecoratorVectorStreamTracer::setCanvas(dtkVisualizationCanv
d_func()->view->renderer()->AddActor(d->actor);
d->source_line_widget->SetInteractor(this->canvas()->renderer()->GetRenderWindow()->GetInteractor());
d->source_sphere_widget->SetInteractor(this->canvas()->renderer()->GetRenderWindow()->GetInteractor());
if (d->cb_source_type->currentText() == "Sphere") {
d->source_sphere_widget->On();
if (!d_func()->default_visibility) {
d_func()->default_visibility = true;
} else {
d->source_line_widget->On();
if (d->cb_source_type->currentText() == "Sphere") {
d->source_sphere_widget->On();
} else {
d->source_line_widget->On();
}
}
}
......
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