fix: grid group

This commit is contained in:
cha0s 2024-07-23 23:22:07 -05:00
parent fb1a286a86
commit f197658199

View File

@ -7,6 +7,8 @@ import {Sprite} from '@pixi/sprite';
import {useRadians} from '@/react/context/radians.js';
import {deferredLighting} from './lights.js';
const tileSize = {x: 16, y: 16};
const radius = 9;
@ -68,6 +70,7 @@ const TargetingGridInternal = PixiComponent('TargetingGrid', {
container.mask = area;
const top = new Container();
top.addChild(container, area);
top.parentGroup = deferredLighting.diffuseGroup;
return top;
},
applyProps: ({children: [container]}, oldProps, {x, y, radians}) => {