From 90a8f37eedd2e0f71aca792cf9da84d5eb64530b Mon Sep 17 00:00:00 2001 From: Svein Seldal Date: Wed, 5 Nov 2025 23:09:14 +0100 Subject: [PATCH] Fix UI issue with PDO mapping on ODs with hidden objects --- src/objdictgen/maps.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/objdictgen/maps.py b/src/objdictgen/maps.py index c14673b..c3e1570 100644 --- a/src/objdictgen/maps.py +++ b/src/objdictgen/maps.py @@ -505,6 +505,8 @@ def FindMapVariableList(self, node: Node, compute=True) -> Generator[tuple[int, It yields tuple of (index, subindex, size, name) """ for index, entry in self.items(): + if entry.get("need") is False: + continue values = entry["values"] for subindex, subvalue in enumerate(values): if not subvalue["pdo"]: