]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Improve Actors auto-arrangement
authorjfa <jfa@opencascade.com>
Fri, 29 Jul 2005 08:45:33 +0000 (08:45 +0000)
committerjfa <jfa@opencascade.com>
Fri, 29 Jul 2005 08:45:33 +0000 (08:45 +0000)
src/VISUGUI/VisuGUI_TimeAnimation.cxx

index 3f9c440bcf5856ae0f4c39c53b74ed409226d079..93987d245daec1d2c35b5783adfcefe651a611af 100644 (file)
@@ -354,6 +354,12 @@ void ArrangeDlg::acceptViewWindow()
       VISU::Prs3d_i* aPrs = it.key();
       if (VISU_Actor* aActor = VISU::GetActor(aPrs, myViewWindow)) {
        int aAxis = getAxis();
+
+       float aZeroOffset[3];
+        aZeroOffset[0] = aZeroOffset[1] = aZeroOffset[2] = 0;
+       aActor->SetPosition(aZeroOffset);
+        aActor->GetMapper()->Update();
+
        float aBounds[6];
        aActor->GetBounds(aBounds);
        switch (aAxis) {