Commit 9405409e authored by CABEL Tristan's avatar CABEL Tristan

resetcamera after applying transform

parent 9239a277
......@@ -253,6 +253,7 @@ void dtkVisualizationCanvas::scale(double x, double y, double z)
vtkSmartPointer<vtkTransform> transform = vtkSmartPointer<vtkTransform>::New();
transform->Scale(x, y, z);
camera->SetModelTransformMatrix(transform->GetMatrix());
d->renderer->ResetCamera();
this->draw();
}
}
......
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