Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0b0ec53

Browse files
Help with first time initialization
1 parent 2d1e4a9 commit 0b0ec53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Scripts/Editor/AutoLOD.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static List<Type> meshSimplifiers
152152
{
153153
get
154154
{
155-
if (s_MeshSimplifiers == null)
155+
if (s_MeshSimplifiers == null||s_MeshSimplifiers.Count==0)
156156
s_MeshSimplifiers = ObjectUtils.GetImplementationsOfInterface(typeof(IMeshSimplifier)).ToList();
157157

158158
return s_MeshSimplifiers;
@@ -163,7 +163,7 @@ static List<Type> batchers
163163
{
164164
get
165165
{
166-
if (s_Batchers == null)
166+
if (s_Batchers == null||s_Batchers.Count==0)
167167
s_Batchers = ObjectUtils.GetImplementationsOfInterface(typeof(IBatcher)).ToList();
168168

169169
return s_Batchers;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /