Skip to content

Commit f525876

Browse files
committed
コード整理
1 parent a0ca295 commit f525876

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

Assets/Nova/Editor/Core/Scripts/RendererErrorHandler.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,6 @@ internal static void FixError(List<ParticleSystemRenderer> renderers,
415415
? correctVertexStreamsInstanced
416416
: correctVertexStreams;
417417

418-
var currentVertexStreams = new List<ParticleSystemVertexStream>();
419-
renderer.GetActiveVertexStreams(currentVertexStreams);
420-
finalVertexStreams = PreserveStableRandomStreams(currentVertexStreams, finalVertexStreams);
421418
renderer.SetActiveVertexStreams(finalVertexStreams);
422419
}
423420

@@ -428,24 +425,10 @@ internal static void FixError(List<ParticleSystemRenderer> renderers,
428425
? correctTrailVertexStreamsInstanced
429426
: correctTrailVertexStreams;
430427

431-
var currentTrailVertexStreams = new List<ParticleSystemVertexStream>();
432-
renderer.GetActiveTrailVertexStreams(currentTrailVertexStreams);
433-
finalTrailVertexStreams =
434-
PreserveStableRandomStreams(currentTrailVertexStreams, finalTrailVertexStreams);
435428
renderer.SetActiveTrailVertexStreams(finalTrailVertexStreams);
436429
}
437430
}
438431
}
439432

440-
/// <summary>
441-
/// Preserves necessary streams from current vertex streams when applying correct streams.
442-
/// </summary>
443-
private static List<ParticleSystemVertexStream> PreserveStableRandomStreams(
444-
List<ParticleSystemVertexStream> currentStreams,
445-
List<ParticleSystemVertexStream> correctStreams)
446-
{
447-
// Simply return the correct streams as they are already properly configured
448-
return new List<ParticleSystemVertexStream>(correctStreams);
449-
}
450433
}
451434
}

0 commit comments

Comments
 (0)