Skip to content

Commit d040b17

Browse files
committed
also remove meshfilter when batching props
1 parent ea5546e commit d040b17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RasterPropMonitor/Auxiliary modules/PropBatcher.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using JetBrains.Annotations;
77
using UnityEngine;
88

9-
namespace JSI.Auxiliary_modules
9+
namespace JSI
1010
{
1111
public class PropBatcher : InternalModule
1212
{
@@ -175,6 +175,7 @@ public override void OnLoad(ConfigNode node)
175175
if (i > 0)
176176
{
177177
Component.Destroy(batchList[i].GetComponent<MeshRenderer>());
178+
Component.Destroy(batchList[i].GetComponent<MeshFilter>());
178179
}
179180

180181
instances[i] = instance;

0 commit comments

Comments
 (0)