Skip to content

Commit fca32d9

Browse files
committed
add call to InvalidateBatchingState in GoWrapper.SetWrapTarget
1 parent 11119f4 commit fca32d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/Scripts/Core/GoWrapper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public void SetWrapTarget(GameObject target, bool cloneMaterial)
7979
// set Flags.SkipBatching only target not null
8080
if (target == null) _flags &= ~Flags.SkipBatching;
8181
else _flags |= Flags.SkipBatching;
82+
InvalidateBatchingState();
8283

8384
RecoverMaterials();
8485

0 commit comments

Comments
 (0)