Fixed 3D model assets' direct children not being pinged correctly when selected via a search result

This commit is contained in:
yasirkula
2023-06-27 14:01:20 +03:00
parent 956aea1ced
commit cf0fea56ab
@@ -177,6 +177,12 @@ namespace AssetUsageDetectorNamespace
selection = objTR.gameObject;
#endif
}
else if( prefabAssetType == PrefabAssetType.Model )
{
objTR = ( (GameObject) obj ).transform;
while( objTR.parent != null && objTR.parent.parent != null )
objTR = objTR.parent;
}
#else
Transform objTR = ( (GameObject) obj ).transform;
while( objTR.parent != null && objTR.parent.parent != null )