Update AssetUsageDetector.cs

bugfix for a NullReferenceException
This commit is contained in:
Süleyman Yasir KULA
2016-10-10 19:53:53 +03:00
committed by GitHub
parent 0d386e6ab2
commit 1f97011df8
+4 -1
View File
@@ -619,7 +619,10 @@ public class AssetUsageDetector : EditorWindow
for( int i = 0; i < components.Length; i++ )
{
Component component = components[i];
if( component == null )
continue;
// Ignore Transform component (no object field to search for)
if( component is Transform )
continue;