diff --git a/tools/python/mwm/find_feature.py b/tools/python/mwm/find_feature.py index 58f9a719d2..fcecab8bf7 100755 --- a/tools/python/mwm/find_feature.py +++ b/tools/python/mwm/find_feature.py @@ -9,7 +9,9 @@ def find_feature(path, typ, string): mwm.read_header() mwm.read_types(os.path.join(os.path.dirname(__file__), "..", "..", "..", "data", "types.txt")) - for i, feature in enumerate(mwm.iter_features(metadata=True)): + + parse_metadata = typ == "m" + for i, feature in enumerate(mwm.iter_features(metadata=parse_metadata)): found = False if typ == "n" and "name" in feature["header"]: for value in feature["header"]["name"].values():