adventuregamestudio / ags

AGS editor and engine source code
Other
708 stars 159 forks source link

Editor: having multiple project folders which names are different only in letter case breaks the item drag-n-drop #2473

Open ivan-mogilko opened 4 months ago

ivan-mogilko commented 4 months ago

Describe the bug If there are 2+ folders in the project tree, which have names different only by letter case (e.g. "Test" and "test"), the Editor gets confused when dragging and dropping an item into one of them: the item will be dropped into the first folder of such name instead of a chosen one.

AGS Version 3.6.1 and eariler (seems like an old bug).

To Reproduce

  1. Open a game project.
  2. Open, for instance, Characters node.
  3. Create two folders: "Test" and "test".
  4. Drag existing character to the folder "test".
  5. Notice Character appears in the upper folder "Test" instead.

Expected behavior Dragged and dropped items should end up where user have dropped them.

On a side note, I noticed that folder names are not required to be unique on a given level. Perhaps that may be considered another issue.

ericoporto commented 4 months ago

On a side note, I noticed that folder names are not required to be unique on a given level

I think they should be unique and should probably be case insensitive too.

If there are 2+ folders in the project tree, which have names different only by letter case

Does this only happens if they are at the same level?


I remember in current master I modified a bit the drag and drop code for the below/bottom of folder drag.