Skip to content

Commit

Permalink
ignore picked up parts
Browse files Browse the repository at this point in the history
  • Loading branch information
dkavolis committed Jun 20, 2021
1 parent e33678d commit fcedf40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FerramAerospaceResearch/FARPartGeometry/GeometryPartModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ public void ClearMeshData()

public void GeometryPartModuleRebuildMeshData()
{
// skip parts that have been picked up, picking up should not invalidate previous voxelization
if (part.gameObject.layer == ignoreLayer0)
return;

RebuildAllMeshData();
UpdateVoxelShape();
}
Expand Down
Binary file not shown.

0 comments on commit fcedf40

Please sign in to comment.