Skip to content

Commit 40cc61c

Browse files
author
Unity Technologies
committed
Unity 2017.4.18f1 C# reference source code
1 parent 397f725 commit 40cc61c

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

‎Editor/Mono/ImportSettings/PrefabUtility.cs‎

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,21 @@ private static void RegisterNewObjects(List<Object> newHierarchy, List<Object> h
111111

112112
foreach (var i in newHierarchy)
113113
{
114-
var found = false;
115-
foreach (var j in hierarchy)
114+
if (i != null)
116115
{
117-
if (j.GetInstanceID() == i.GetInstanceID())
116+
var found = false;
117+
foreach (var j in hierarchy)
118118
{
119-
found = true;
120-
break;
119+
if (j != null && j.GetInstanceID() == i.GetInstanceID())
120+
{
121+
found = true;
122+
break;
123+
}
124+
}
125+
if (!found)
126+
{
127+
danglingObjects.Add(i);
121128
}
122-
}
123-
if (!found)
124-
{
125-
danglingObjects.Add(i);
126129
}
127130
}
128131

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Unity 2017.4.17f1 C# reference source code
1+
## Unity 2017.4.18f1 C# reference source code
22

33
The C# part of the Unity engine and editor source code.
44
May be used for reference purposes only.

0 commit comments

Comments
 (0)