Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
keijiro committed Aug 19, 2017
1 parent 65cc924 commit fa27ab8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Assets/Scripts/TempRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,11 @@ void OnDestroy()
{
if (Application.isPlaying)
{
Destroy(_meshFilter);
Destroy(_meshRenderer);
Destroy(_defaultMesh);
Destroy(_defaultMaterial);
}
else
{
DestroyImmediate(_meshFilter);
DestroyImmediate(_meshRenderer);
DestroyImmediate(_defaultMesh);
DestroyImmediate(_defaultMaterial);
}
Expand Down

0 comments on commit fa27ab8

Please sign in to comment.