We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1690431 commit d6a70caCopy full SHA for d6a70ca
TrueTrace.unitypackage
-2.62 KB
TrueTrace/Resources/AssetManager.cs
@@ -853,7 +853,10 @@ private void UpdateRenderAndBuildQues() {
853
QueCount = UpdateQue.Count;
854
for (int i = QueCount - 1; i >= 0; i--) {//Demotes from Render Que to Build Que in case mesh has changed
855
if (UpdateQue[i] != null && UpdateQue[i].gameObject.activeInHierarchy) {
856
- if (UpdateQue[i].ExistsInQue != 1) {
+ if (UpdateQue[i].ExistsInQue == 0) {
857
+ int Index = RenderQue.IndexOf(UpdateQue[i]);
858
+ RenderQue.RemoveAt(Index);
859
+ RenderTransforms.RemoveAt(Index);
860
UpdateQue[i].Reset(1);
861
BuildQue.Add(UpdateQue[i]);
862
}
0 commit comments