Skip to content

Commit 04edc7a

Browse files
committed
fix the stupid hierarchy problem, thanks KSP+Unity...
Fixes #23
1 parent f846043 commit 04edc7a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
Binary file not shown.

Plugin/SSTUTools/KSPShaderTools/Module/KSPTextureSwitch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private void loadConfigData()
9595

9696
private Transform[] getModelTransforms()
9797
{
98-
return string.IsNullOrEmpty(transformName) ? part.transform.FindChildren("model") : part.transform.FindRecursive("model").FindChildren(transformName);
98+
return string.IsNullOrEmpty(transformName) ? new Transform[] { part.transform.FindRecursive("model") } : part.transform.FindRecursive("model").FindChildren(transformName);
9999
}
100100

101101
public string[] getSectionNames()

0 commit comments

Comments
 (0)