From ec1c3ef347ceb0f2864d292f48e4e23a620c1514 Mon Sep 17 00:00:00 2001 From: "Paul m. p. P" Date: Fri, 6 Sep 2019 15:57:24 +0200 Subject: [PATCH] extract_docs: fix reference to undefined typename Closes #730 --- direct/src/directscripts/extract_docs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/direct/src/directscripts/extract_docs.py b/direct/src/directscripts/extract_docs.py index caead7e4dc..50a775d108 100644 --- a/direct/src/directscripts/extract_docs.py +++ b/direct/src/directscripts/extract_docs.py @@ -273,6 +273,7 @@ def processModule(handle, package): if "panda3d." + package == module_name: processType(handle, type) else: + typename = interrogate_type_name(type) print("Type %s has no module name" % typename) for i_func in range(interrogate_number_of_global_functions()): @@ -283,7 +284,8 @@ def processModule(handle, package): if "panda3d." + package == module_name: processFunction(handle, func) else: - print("Type %s has no module name" % typename) + funcname = interrogate_function_name(func) + print("Function %s has no module name" % funcname) print("}", file=handle)