trevorsandy / lpub3d

An LDraw™ editor for LEGO® style digital building instructions.
https://trevorsandy.github.io/lpub3d/
131 stars 19 forks source link

Visual editor parts highlight when parts selected in command editor #682

Closed trevorsandy closed 1 year ago

trevorsandy commented 1 year ago

Subject

When the preceding step is a cover page or inserted page without parts added, in the subsequent step, parts selected in the command editor are not also selected in the visual editor.

If the preceding step is has parts added, in the subsequent step, part selections in the command editor and visual editor behave as expected.

Environment

Version of LPub3D - 2.4.6 Operating system - All

Expected behaviour

Parts selected in the command editor should also be selected in the visual editor.

Actual behaviour

Parts selected in the command editor are not also selected in the visual editor. This behaviour was a consequence of the visual editor 'selected parts' slot automatically being triggered twice when called. The first trigger would set the selection as expected but the second trigger would unselect the selection which produced the behaviour where no selection is realized.

Solution

Fix it.

Cheers,

trevorsandy commented 1 year ago

This behaviour has been corrected.

Cheers,