Browse Source

doc: Only encode version branch (x.y) in class header

This avoids a big diff on patch version updates.

(cherry picked from commit dacfdd8f336b61c10042a9662376cbc3771d6a69)
Rémi Verschelde 5 years ago
parent
commit
fbaf3c26bf
2 changed files with 2 additions and 2 deletions
  1. 1 1
      editor/doc/doc_data.cpp
  2. 1 1
      editor/doc/doc_dump.cpp

+ 1 - 1
editor/doc/doc_data.cpp

@@ -1030,7 +1030,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);
 

+ 1 - 1
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()) {