fix node extra info display

This commit is contained in:
ad044 2022-07-31 01:20:58 +04:00
parent b9d32d8f2f
commit 41670f6f56

View file

@ -196,6 +196,15 @@ const HUD = () => {
);
}, [nodeMatrixIndex, prev?.scene, subscene]);
// toggling extra node info display
useEffect(() => {
if (protocolLinesEnabled) {
const hud = getNodeHud(nodeMatrixIndex);
setHud(hud, false);
}
}, [nodeMatrixIndex, protocolLinesEnabled]);
// changing node
useEffect(() => {
if (subscene !== MainSubscene.Site) {