This commit is contained in:
Ne_Eo
2024-07-22 10:27:02 +02:00
parent 7b968a3543
commit 8fc595a585
+5 -6
View File
@@ -20,14 +20,13 @@ class MatrixUtil {
nc.zoom = camera.zoom;
nc.scroll.set(camera.scroll.x, camera.scroll.y);
nc.pixelPerfectRender = camera.pixelPerfectRender;
var isPostDraw = sprite is IPrePostDraw;
var postDraw = isPostDraw ? cast(sprite, IPrePostDraw) : null;
if(isPostDraw) {
if(sprite is IPrePostDraw) {
var postDraw = cast(sprite, IPrePostDraw);
postDraw.preDraw();
}
@:privateAccess sprite.drawComplex(nc);
if(isPostDraw) {
@:privateAccess sprite.drawComplex(nc);
postDraw.postDraw();
} else {
@:privateAccess sprite.drawComplex(nc);
}
var isFunkinSprite = sprite is FunkinSprite;