Skip to content

Commit

Permalink
Exclude physicsless parts from ground joints
Browse files Browse the repository at this point in the history
  • Loading branch information
siimav committed Oct 28, 2024
1 parent 803da22 commit 228c0e2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public void Init(List<Part> clampParts)
Part mPart = orderedParts[i];
i++;

if (clampParts.Contains(mPart) || pickedMassiveParts.Contains(mPart))
if (mPart.physicalSignificance == Part.PhysicalSignificance.NONE ||
clampParts.Contains(mPart) || pickedMassiveParts.Contains(mPart))
continue;

pickedMassiveParts.Add(mPart);
Expand Down

0 comments on commit 228c0e2

Please sign in to comment.