mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 21:08:28 +00:00
constraint to MapObjects only
This commit is contained in:
parent
b3fb1870d6
commit
3efab468af
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
using SanAndreasUnity.Behaviours.World;
|
||||
using SanAndreasUnity.Behaviours;
|
||||
using SanAndreasUnity.Behaviours.World;
|
||||
using SanAndreasUnity.Utilities;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
@ -138,7 +139,7 @@ namespace SanAndreasUnity.Editor
|
|||
EditorUtility.DisplayProgressBar("", "Gathering info...", 0f);
|
||||
|
||||
Transform[] objectsToExport = m_exportFromSelection
|
||||
? Selection.transforms
|
||||
? Selection.transforms.Where(_ => _.GetComponent<MapObject>() != null).ToArray()
|
||||
: cell.transform.GetFirstLevelChildren().ToArray();
|
||||
|
||||
int numObjectsActive = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue