Skip to content

Commit

Permalink
Merge pull request #36218 from akien-mga/doc-version-branch
Browse files Browse the repository at this point in the history
doc: Only encode version branch (x.y) in class header
  • Loading branch information
akien-mga authored Feb 14, 2020
2 parents 6d3809b + dacfdd8 commit 705ad94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion editor/doc/doc_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion editor/doc/doc_dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {

Expand Down

0 comments on commit 705ad94

Please sign in to comment.