File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -736,6 +736,7 @@ void vtkF3DRenderer::ConfigureGridAxesUsingCurrentActors()
736736{
737737#if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9, 4, 20250513)
738738 bool show = this ->AxesGridVisible ;
739+ this ->GridAxesActor ->SetUseBounds (false );
739740 if (show)
740741 {
741742 double * up = this ->GetEnvironmentUp ();
@@ -1789,6 +1790,12 @@ void vtkF3DRenderer::UpdateActors()
17891790 this ->ConfigureTextActors ();
17901791 }
17911792
1793+ // GridAxes should not affect bounds, UseBounds must be set false before configuring the render pass.
1794+ if (!this ->GridAxesConfigured )
1795+ {
1796+ this ->ConfigureGridAxesUsingCurrentActors ();
1797+ }
1798+
17921799 if (!this ->RenderPassesConfigured )
17931800 {
17941801 this ->ConfigureRenderPasses ();
@@ -1799,11 +1806,6 @@ void vtkF3DRenderer::UpdateActors()
17991806 {
18001807 this ->ConfigureGridUsingCurrentActors ();
18011808 }
1802-
1803- if (!this ->GridAxesConfigured )
1804- {
1805- this ->ConfigureGridAxesUsingCurrentActors ();
1806- }
18071809}
18081810
18091811// ----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments