From dc409fbb5568b994a60c7b6769ba5a8c87d33663 Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Tue, 5 Nov 2024 10:33:18 +0100 Subject: [PATCH] #3565 Keep state of FixAxis in SetPosition box --- bbtk/src/bbcreaMaracasVisuSetPosition.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx index 897818f..2121a2d 100644 --- a/bbtk/src/bbcreaMaracasVisuSetPosition.cxx +++ b/bbtk/src/bbcreaMaracasVisuSetPosition.cxx @@ -38,6 +38,7 @@ void SetPosition::Process() vtkmprbasedata->SetX( bbGetInputPoint()[0] ); vtkmprbasedata->SetY( bbGetInputPoint()[1] ); vtkmprbasedata->SetZ( bbGetInputPoint()[2] ); + bool tmpFixAxis = vtkmprbasedata->GetFixAxis2D( ); vtkmprbasedata->SetFixAxis2D( bbGetInputFixAxis2D() ); int codeEvent; if (bbGetInputType()==0) @@ -54,7 +55,8 @@ void SetPosition::Process() bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessEvent( newevent ); #else bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessWindowEvent( newevent ); - #endif + #endif + vtkmprbasedata->SetFixAxis2D( tmpFixAxis ); } // if bbGetInputPosition } // bbGetInputwxVtkBaseView } // Active -- 2.49.0