From 7fcd198322c47dfa1c3bf54eecbfaf09e13e4a63 Mon Sep 17 00:00:00 2001 From: sebaszm Date: Sun, 12 Nov 2023 20:28:25 +0100 Subject: [PATCH] [JsonGenerator] Fix alt in properties --- JsonGenerator/source/header_loader.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/JsonGenerator/source/header_loader.py b/JsonGenerator/source/header_loader.py index 96c1b60..1ca8bd1 100644 --- a/JsonGenerator/source/header_loader.py +++ b/JsonGenerator/source/header_loader.py @@ -435,6 +435,13 @@ def BuildResult(vars, is_property=False): mm.retval.meta.text = method.retval.meta.text break + # Copy over @alt tag to the other method of a property + if method.retval.meta.alt and method.retval.meta.is_property: + for mm in face.obj.methods: + if mm != method and mm.name == method.name: + mm.retval.meta.alt = method.retval.meta.alt + break + method_name = method.retval.meta.text if method.retval.meta.text else method.name method_name_lower = method_name.lower()