DiscussionsIssue archiveOCCT:Visualization

Archived issue #0031599

Visualization - when using AIS_Manipulator, the scene rotates at the same time

Open CASCADEOCCT:Visualizationclosed3 public notes

Search issues

Description

When using the vmanipulator command with the startTransform / transform / stopTransform flags, the manipulator works correctly, but if you perform the same actions with the mouse, the whole scene rotates with the local transformation.

The reason is that #0029384 swapped order of handleCameraActions() and handleMoveTo() actions. It is necessary fixing regression, as well as ensuring that dragging works properly in XR.

void AIS_ViewController::HandleViewEvents (const Handle(AIS_InteractiveContext)& theCtx,
                                           const Handle(V3d_View)& theView)
{
-  handleMoveTo (theCtx, theView);
  const bool wasImmediateUpdate = theView->SetImmediateUpdate (false);

  const AIS_WalkDelta aWalk = FetchNavigationKeys (1.0, 1.0);
  handleCameraActions (theCtx, theView, aWalk);

+  handleMoveTo (theCtx, theView);

Public activity

3 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Commenter 3.

[revision removed]


Detailed log of new commits:

Author: Commenter 3
Date: Sat Jun 6 19:13:28 2020 +0300

    0031599: Visualization - when using AIS_Manipulator, the scene rotates at the same time
    
    AIS_ViewController::HandleViewEvents() - reverted order of handleMoveTo() and handleCameraActions() events.
02Commenter 3
03Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]