diff options
-rwxr-xr-x | tools/grit/grit/format/data_pack.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/grit/grit/format/data_pack.py b/tools/grit/grit/format/data_pack.py index f70b49b..664cbaec 100755 --- a/tools/grit/grit/format/data_pack.py +++ b/tools/grit/grit/format/data_pack.py @@ -37,6 +37,8 @@ class DataPack(interface.ItemFormatter): def GetDataNodes(item): '''Returns a list of nodes that can be packed into the data pack file.''' nodes = [] + if (isinstance(item, misc.IfNode) and not item.IsConditionSatisfied()): + return nodes if (isinstance(item, include.IncludeNode) or isinstance(item, message.MessageNode)): return [item] |