diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-14 18:40:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 18:40:24 +0100 |
commit | 705ad947e9879028cdb9d66fcfa49bccffd90e4c (patch) | |
tree | c75dfc53df9a71cd246d8096fc5b1d572c7580c4 /editor/doc | |
parent | 6d3809b25e5404cb2f05de6830fb25bbb3e8b94b (diff) | |
parent | dacfdd8f336b61c10042a9662376cbc3771d6a69 (diff) |
Merge pull request #36218 from akien-mga/doc-version-branch
doc: Only encode version branch (x.y) in class header
Diffstat (limited to 'editor/doc')
-rw-r--r-- | editor/doc/doc_data.cpp | 2 | ||||
-rw-r--r-- | editor/doc/doc_dump.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp index c128ca4321..de3d13cdac 100644 --- a/editor/doc/doc_data.cpp +++ b/editor/doc/doc_data.cpp @@ -1032,7 +1032,7 @@ Error DocData::save_classes(const String &p_default_path, const Map<String, Stri String header = "<class name=\"" + c.name + "\""; if (c.inherits != "") header += " inherits=\"" + c.inherits + "\""; - header += String(" version=\"") + VERSION_NUMBER + "\""; + header += String(" version=\"") + VERSION_BRANCH + "\""; header += ">"; _write_string(f, 0, header); diff --git a/editor/doc/doc_dump.cpp b/editor/doc/doc_dump.cpp index d7e1d257f2..5f7fa53ee7 100644 --- a/editor/doc/doc_dump.cpp +++ b/editor/doc/doc_dump.cpp @@ -83,7 +83,7 @@ void DocDump::dump(const String &p_file) { FileAccess *f = FileAccess::open(p_file, FileAccess::WRITE); _write_string(f, 0, "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"); - _write_string(f, 0, String("<doc version=\"") + VERSION_NUMBER + "\" name=\"Engine Types\">"); + _write_string(f, 0, String("<doc version=\"") + VERSION_BRANCH + "\" name=\"Engine Types\">"); while (class_list.size()) { |