Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1544 closed enhancement (fixed)

[PATCH] Selection order is not preserved when renaming entities

Reported by: Deiz Owned by: Deiz
Priority: Should Have Milestone: Alpha 11
Component: UI & Simulation Keywords: patch
Cc: Patch:

Description

As the GUI's selection state depends on SpiderMonkey's ordering of keys in objects (insertion order), detecting renamed entities, removing the old and adding the new will shift entities from their old position to the end of the selection.

The only way to preserve the order is by rebuilding the selection and groups as necessary, which is luckily quite simple.

Attachments (1)

selection-renamed.patch (2.5 KB ) - added by Deiz 12 years ago.

Download all attachments as: .zip

Change History (3)

by Deiz, 12 years ago

Attachment: selection-renamed.patch added

comment:1 by Jonathan Waller, 12 years ago

Resolution: fixed
Status: newclosed

In 12192:

Preserve selection order when entities are 'renamed'. Patch by Deiz/F00. Fixes #1544.
e.g. If you have a long wall as primary selection and CC as secondary, after the gate upgrade the wall (now gate) remains the primary selection.

comment:2 by Jonathan Waller, 12 years ago

Keywords: review removed

Some pretty minor polish, nice to have though :).

Note: See TracTickets for help on using tickets.