It lives! We have tanks displaying

This commit is contained in:
Pyogenics
2025-05-10 17:01:23 +01:00
parent 1974087924
commit c2312bb4d5

View File

@@ -32,7 +32,7 @@ package alternativa.engine3d.core
var list:DrawUnit = null; var list:DrawUnit = null;
var next:DrawUnit = null; var next:DrawUnit = null;
var drawUnitsLength:int = int(this.name_T5.length); var drawUnitsLength:int = int(this.name_T5.length);
for(var i:int = 0; i < drawUnitsLength; ) for(var i:int = 0; i < drawUnitsLength; i++)
{ {
list = this.name_T5[i]; list = this.name_T5[i];
if(list != null) if(list != null)
@@ -86,9 +86,19 @@ package alternativa.engine3d.core
} }
context.setDepthTest(false,Context3DCompareMode.LESS); context.setDepthTest(false,Context3DCompareMode.LESS);
} }
// Rendering, XXX: this was missing from the decompile so I just coppied the code from latest A3D (8.32)
while (list != null) {
next = list.next;
renderDrawUnit(list, context, camera);
// Send to collector
list.clear();
list.next = collector;
collector = list;
list = next;
}
} }
i++;
} }
this.name_T5.length = 0; this.name_T5.length = 0;
} }