From c5ff508071164a51b3a80b90de08e642ad6091b5 Mon Sep 17 00:00:00 2001 From: Erik Onarheim Date: Thu, 12 Dec 2024 23:12:23 -0600 Subject: [PATCH] fix: tint issue that causes it not to apply --- src/engine/Graphics/Context/state-stack.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/engine/Graphics/Context/state-stack.ts b/src/engine/Graphics/Context/state-stack.ts index 336279aed..52fc64d74 100644 --- a/src/engine/Graphics/Context/state-stack.ts +++ b/src/engine/Graphics/Context/state-stack.ts @@ -28,9 +28,7 @@ export class StateStack { private _cloneState(dest: ContextState) { dest.opacity = this.current.opacity; dest.z = this.current.z; - if (dest.tint) { - this.current.tint?.clone(dest.tint); - } + dest.tint = this.current.tint?.clone(); dest.material = this.current.material; // TODO is this going to cause problems when cloning return dest; }