mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-04 23:32:54 +01:00
Merge branch 'main' into data-driven
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user