summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_compiler.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-03 12:15:44 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-03 12:15:44 +0100
commita797fa3b3d7be1b556d604fbc3b21f5757f8abaf (patch)
tree27837a4728fb403b39e28fbb2629dd4e5e061e1e /modules/gdscript/gdscript_compiler.cpp
parente56b16f010e8432d361a1aa9e4d3be1c058402cc (diff)
parent1b77993257c5fff14151dc21407cce9404db18ee (diff)
Merge pull request #70503 from rune-scape/inner-class-docs
Inner classes get their docs back
Diffstat (limited to 'modules/gdscript/gdscript_compiler.cpp')
-rw-r--r--modules/gdscript/gdscript_compiler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp
index 6c7b5d534e..f4b468449b 100644
--- a/modules/gdscript/gdscript_compiler.cpp
+++ b/modules/gdscript/gdscript_compiler.cpp
@@ -2636,10 +2636,6 @@ Error GDScriptCompiler::_compile_class(GDScript *p_script, const GDScriptParser:
}
}
-#ifdef TOOLS_ENABLED
- p_script->_update_doc();
-#endif
-
p_script->_init_rpc_methods_properties();
p_script->valid = true;
@@ -2724,6 +2720,10 @@ Error GDScriptCompiler::compile(const GDScriptParser *p_parser, GDScript *p_scri
return err;
}
+#ifdef TOOLS_ENABLED
+ p_script->_update_doc();
+#endif
+
return GDScriptCache::finish_compiling(main_script->get_path());
}