Skip to content

Commit

Permalink
* Fix for time to start play increasing with brush count
Browse files Browse the repository at this point in the history
  • Loading branch information
Barnaby MacBook committed Aug 16, 2017
1 parent 3f4750b commit 360a921
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Scripts/CSGModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1926,14 +1926,7 @@ static void CleanupForBuild(Transform csgModelTransform)
}

// Remove the CSG Model and its brushes
if(Application.isPlaying)
{
Destroy (csgModelTransform.gameObject);
}
else
{
DestroyImmediate (csgModelTransform.gameObject);
}
DestroyImmediate (csgModelTransform.gameObject);
}

[PostProcessScene(1)]
Expand Down

0 comments on commit 360a921

Please sign in to comment.