Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions EzySlice/SlicedHull.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public GameObject CreateUpperHull(GameObject original) {

public GameObject CreateUpperHull(GameObject original, Material crossSectionMat) {
GameObject newObject = CreateUpperHull();
newObject.transform.parent = original.transform.parent;

if (newObject != null) {
newObject.transform.localPosition = original.transform.localPosition;
Expand Down Expand Up @@ -62,6 +63,7 @@ public GameObject CreateLowerHull(GameObject original) {

public GameObject CreateLowerHull(GameObject original, Material crossSectionMat) {
GameObject newObject = CreateLowerHull();
newObject.transform.parent = original.transform.parent;

if (newObject != null) {
newObject.transform.localPosition = original.transform.localPosition;
Expand Down