OCCT icon indicating copy to clipboard operation
OCCT copied to clipboard

MoveTo() from AIS_InteractiveContext sometimes doesn't redraw the viewer, even if the flag is set to true

Open VladislavVitalievichRomashko opened this issue 11 months ago • 1 comments

Category

Visualization

Severity

Minor

Description

The method MoveTo() being called with the flag theToRedrawOnUpdate = true, sometimes doesn't redraw the viewer. It depends on whether it detects anything under the mouse or not. If not, the method does nothing, including the redrawing of the viewer. It seems it would be better if it does what it is asked to do.

Expected Behavior

Redrawing of the viewer, if the flag is set to true.

Actual Behavior

If nothing is detected, it doesn't redraw the viewer in spite of the value of the input flag.

Sample Code or DRAW Tcl Script

ctx->MoveTo(winx, winy, view, true);

Operating System

Windows

Compiler

MSVC

Compiler Version

2019

Bitness

32-bit

OCCT Version

7.6

Precise OCCT Version or Branch

7.6

Environment

No response

Additional Files

No response

Possible and recommended solution: update method description to have clear definition. The issue was based on 2 MoveTo calls one by one, where the first - without asking to redraw, the second with the same argument to move, but with ask to redraw.

dpasukhi avatar Dec 05 '24 06:12 dpasukhi