mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2025-01-25 06:52:53 +08:00
Fix for selecting multiple entities in MLO via project explorer
This commit is contained in:
parent
a2538fc976
commit
67014c4d39
@ -765,6 +765,19 @@ namespace CodeWalker.Project
|
||||
{
|
||||
if (item is object[] arr)
|
||||
{
|
||||
|
||||
for (int i = 0; i < arr.Length; i++)
|
||||
{
|
||||
if (arr[i] is MCEntityDef mcent)//for MLO entities, need to transform this into an actual entity instance
|
||||
{
|
||||
var instance = TryGetMloInstance(mcent.OwnerMlo);
|
||||
if (instance != null)
|
||||
{
|
||||
arr[i] = instance.TryGetYmapEntity(mcent);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var multisel = MapSelection.FromProjectObject(arr); //convert to MapSelection array
|
||||
item = multisel.MultipleSelectionItems;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user