Skip to content

Commit cbc950b

Browse files
committed
remove queue
1 parent 6ca639a commit cbc950b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,7 @@ protected HashSet<GameObject> RemoveDuplicateObjects(IEnumerable<UnityEngine.Obj
508508
HashSet<GameObject> toExport = new HashSet<GameObject> ();
509509
HashSet<UnityEngine.Object> hashedExportSet = new HashSet<Object> (unityExportSet);
510510

511-
Queue<UnityEngine.Object> queue = new Queue<Object> (unityExportSet);
512-
while(queue.Count > 0) {
513-
var obj = queue.Dequeue();
511+
foreach(var obj in unityExportSet){
514512
var unityGo = GetGameObject (obj);
515513

516514
if (unityGo) {

0 commit comments

Comments
 (0)