Merge branch 'main' into data-driven

This commit is contained in:
tresabhi committed 2026-11-30 23:08:43 -06:00
commit c4bad57271
34 files changed
+986 -992

No files matched your search

@@ -24,6 +24,7 @@ import {
type ModelTransformEventData,
} from "../core/blitzkit/modelTransform";
import { discardClippingPlane } from "../core/three/discardClippingPlane";
import { sceneChangeEvent } from "../core/three/sceneChange";
import { useDuelModules } from "../hooks/useDuelModules";
import { useEquipment } from "../hooks/useEquipment";
import { Tankopedia } from "../stores/tankopedia";
@@ -155,6 +156,13 @@ export function StaticArmorSceneComponent({
[hasEnhancedArmor, equalize],
);
// these cast shadows
useEffect(() => {
sceneChangeEvent.dispatch();
return () => sceneChangeEvent.dispatch();
}, [node]);
useEffect(() => {
function handleHighlightArmor(selectedName?: string) {
if (selectedName === undefined) {