Skip to content

Commit

Permalink
Fixed bug when adding/removing lots of objects
Browse files Browse the repository at this point in the history
Fixed bug when adding/removing lots of objects
  • Loading branch information
Pjbomb2 committed Jun 29, 2024
1 parent 1690431 commit d6a70ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file modified TrueTrace.unitypackage
Binary file not shown.
5 changes: 4 additions & 1 deletion TrueTrace/Resources/AssetManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,10 @@ private void UpdateRenderAndBuildQues() {
QueCount = UpdateQue.Count;
for (int i = QueCount - 1; i >= 0; i--) {//Demotes from Render Que to Build Que in case mesh has changed
if (UpdateQue[i] != null && UpdateQue[i].gameObject.activeInHierarchy) {
if (UpdateQue[i].ExistsInQue != 1) {
if (UpdateQue[i].ExistsInQue == 0) {
int Index = RenderQue.IndexOf(UpdateQue[i]);
RenderQue.RemoveAt(Index);
RenderTransforms.RemoveAt(Index);
UpdateQue[i].Reset(1);
BuildQue.Add(UpdateQue[i]);
}
Expand Down

0 comments on commit d6a70ca

Please sign in to comment.