We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44186cf commit ea10a15Copy full SHA for ea10a15
1 file changed
CathodeLib/Scripts/CATHODE/Models.cs
@@ -615,6 +615,16 @@ public CS2.Component FindModelComponentForSubmesh(CS2.Component.LOD.Submesh subm
615
return null;
616
}
617
/// <summary>
618
+ /// Find a model for a component
619
+ /// </summary>
620
+ public CS2 FindModelForComponent(CS2.Component component)
621
+ {
622
+ for (int i = 0; i < Entries.Count; i++)
623
+ if (Entries[i].Components.Contains(component))
624
+ return Entries[i];
625
+ return null;
626
+ }
627
+ /// <summary>
628
/// Find a LOD that contains a given submesh
629
/// </summary>
630
public CS2.Component.LOD FindModelLODForSubmesh(CS2.Component.LOD.Submesh submesh)
0 commit comments