From e7f954bf7cb14adaaed642400933a46426778168 Mon Sep 17 00:00:00 2001 From: Muller-Castro <37383316+Muller-Castro@users.noreply.github.com> Date: Mon, 4 Aug 2025 04:43:47 -0300 Subject: [PATCH] Add tabs to SConstruct snippet --- tutorials/scripting/cpp/gdextension_docs_system.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tutorials/scripting/cpp/gdextension_docs_system.rst b/tutorials/scripting/cpp/gdextension_docs_system.rst index f1c79f564..628645100 100644 --- a/tutorials/scripting/cpp/gdextension_docs_system.rst +++ b/tutorials/scripting/cpp/gdextension_docs_system.rst @@ -59,11 +59,11 @@ you need to add the following lines to your SConstruct file: .. code-block:: py if env["target"] in ["editor", "template_debug"]: - try: - doc_data = env.GodotCPPDocData("src/gen/doc_data.gen.cpp", source=Glob("doc_classes/*.xml")) - sources.append(doc_data) - except AttributeError: - print("Not including class reference as we're targeting a pre-4.3 baseline.") + try: + doc_data = env.GodotCPPDocData("src/gen/doc_data.gen.cpp", source=Glob("doc_classes/*.xml")) + sources.append(doc_data) + except AttributeError: + print("Not including class reference as we're targeting a pre-4.3 baseline.") The if-statement checks if we are compiling the GDExtension library with the ``editor`` and ``template_debug`` flags. SCons then tries to load all the XML files inside the ``doc_classes`` directory and appends them