Skip to content

Commit

Permalink
Showing 3 changed files with 7 additions and 3 deletions.
Binary file modified GameData/RP-0/Plugins/RP0.dll
Binary file not shown.
6 changes: 4 additions & 2 deletions Source/Tooling/ModuleToolingGeneric.cs
Original file line number Diff line number Diff line change
@@ -55,14 +55,16 @@ protected override void GetDimensions(out float diam, out float len)
if (diameter == null)
{
diameter = pm.Fields[diamField];

if (diameter == null)
{
Debug.LogError("[ModuleTooling]: Could not bind to field: " + diamField + " on " + partModuleName);
return;
return;
}
}

if(useLength && length == null)
{

length = pm.Fields[lenField];

if (length == null)
4 changes: 3 additions & 1 deletion Source/Tooling/ModuleToolingPFSide.cs
Original file line number Diff line number Diff line change
@@ -46,8 +46,10 @@ protected override void GetDimensions(out float diam, out float len)


if (baseRad == null)
{
Debug.LogError("[ModuleTooling]: Could not bind to fields in PF module");
return;
return;
}
}
float baseRadF, maxRadF, cylEndF, sideThicknessF, inlineHeightF, noseHeightRatioF;
baseRadF = baseRad.GetValue<float>(pm);

0 comments on commit 62a4140

Please sign in to comment.