Browse Source

Fix typos with codespell

Using codespell 2.1.0.

Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
ans
ba
curvelinear
dof
doubleclick
fave
findn
gird
inout
leapyear
lod
merchantibility
nd
numer
ois
ony
que
readded
seeked
statics
Rémi Verschelde 3 years ago
parent
commit
a01b18a476

+ 1 - 1
core/math/octree.h

@@ -103,7 +103,7 @@ private:
 		Octant *parent = nullptr;
 		Octant *parent = nullptr;
 		Octant *children[8] = { nullptr };
 		Octant *children[8] = { nullptr };
 
 
-		int children_count = 0; // cache for amount of childrens (fast check for removal)
+		int children_count = 0; // cache for amount of children (fast check for removal)
 		int parent_index = -1; // cache for parent index (fast check for removal)
 		int parent_index = -1; // cache for parent index (fast check for removal)
 
 
 		List<Element *, AL> pairable_elements;
 		List<Element *, AL> pairable_elements;

+ 2 - 2
doc/classes/HMACContext.xml

@@ -15,7 +15,7 @@
 		    var err = ctx.start(HashingContext.HASH_SHA256, key)
 		    var err = ctx.start(HashingContext.HASH_SHA256, key)
 		    assert(err == OK)
 		    assert(err == OK)
 		    var msg1 = "this is ".to_utf8()
 		    var msg1 = "this is ".to_utf8()
-		    var msg2 = "vewy vewy secret".to_utf8()
+		    var msg2 = "super duper secret".to_utf8()
 		    err = ctx.update(msg1)
 		    err = ctx.update(msg1)
 		    assert(err == OK)
 		    assert(err == OK)
 		    err = ctx.update(msg2)
 		    err = ctx.update(msg2)
@@ -38,7 +38,7 @@
 		        Error err = ctx.Start(HashingContext.HASH_SHA256, key);
 		        Error err = ctx.Start(HashingContext.HASH_SHA256, key);
 		        GD.Assert(err == OK);
 		        GD.Assert(err == OK);
 		        PackedByteArray msg1 = String("this is ").to_utf8();
 		        PackedByteArray msg1 = String("this is ").to_utf8();
-		        PackedByteArray msg2 = String("vewy vew secret").to_utf8();
+		        PackedByteArray msg2 = String("super duper secret").to_utf8();
 		        err = ctx.Update(msg1);
 		        err = ctx.Update(msg1);
 		        GD.Assert(err == OK);
 		        GD.Assert(err == OK);
 		        err = ctx.Update(msg2);
 		        err = ctx.Update(msg2);

+ 1 - 1
drivers/gles3/rasterizer_storage_gles3.h

@@ -1325,7 +1325,7 @@ public:
 	struct Frame {
 	struct Frame {
 		RenderTarget *current_rt;
 		RenderTarget *current_rt;
 
 
-		// these 2 may have been superceded by the equivalents in the render target.
+		// these 2 may have been superseded by the equivalents in the render target.
 		// these may be able to be removed.
 		// these may be able to be removed.
 		bool clear_request;
 		bool clear_request;
 		Color clear_request_color;
 		Color clear_request_color;

+ 1 - 1
editor/plugins/material_editor_plugin.cpp

@@ -261,7 +261,7 @@ void EditorInspectorPluginMaterial::_undo_redo_inspector_callback(Object *p_undo
 	}
 	}
 
 
 	// For BaseMaterial3D, if a roughness or metallic textures is being assigned to an empty slot,
 	// For BaseMaterial3D, if a roughness or metallic textures is being assigned to an empty slot,
-	// set the respective metallic or roughness factor to 1.0 as a convinence feature
+	// set the respective metallic or roughness factor to 1.0 as a convenience feature
 	BaseMaterial3D *base_material = Object::cast_to<StandardMaterial3D>(p_edited);
 	BaseMaterial3D *base_material = Object::cast_to<StandardMaterial3D>(p_edited);
 	if (base_material) {
 	if (base_material) {
 		Texture2D *texture = Object::cast_to<Texture2D>(p_new_value);
 		Texture2D *texture = Object::cast_to<Texture2D>(p_new_value);

+ 5 - 5
editor/script_create_dialog.cpp

@@ -353,15 +353,15 @@ void ScriptCreateDialog::_load_exist() {
 }
 }
 
 
 Vector<String> ScriptCreateDialog::get_hierarchy(String p_object) const {
 Vector<String> ScriptCreateDialog::get_hierarchy(String p_object) const {
-	Vector<String> hierachy;
-	hierachy.append(p_object);
+	Vector<String> hierarchy;
+	hierarchy.append(p_object);
 
 
 	String parent_class = ClassDB::get_parent_class(p_object);
 	String parent_class = ClassDB::get_parent_class(p_object);
 	while (parent_class.is_valid_identifier()) {
 	while (parent_class.is_valid_identifier()) {
-		hierachy.append(parent_class);
+		hierarchy.append(parent_class);
 		parent_class = ClassDB::get_parent_class(parent_class);
 		parent_class = ClassDB::get_parent_class(parent_class);
 	}
 	}
-	return hierachy;
+	return hierarchy;
 }
 }
 
 
 void ScriptCreateDialog::_language_changed(int l) {
 void ScriptCreateDialog::_language_changed(int l) {
@@ -544,7 +544,7 @@ void ScriptCreateDialog::_update_template_menu() {
 	template_list.clear();
 	template_list.clear();
 
 
 	if (is_language_using_templates) {
 	if (is_language_using_templates) {
-		// Get the lastest templates used for each type of node from project settings then global settings.
+		// Get the latest templates used for each type of node from project settings then global settings.
 		Dictionary last_local_templates = EditorSettings::get_singleton()->get_project_metadata("script_setup", "templates_dictionary", Dictionary());
 		Dictionary last_local_templates = EditorSettings::get_singleton()->get_project_metadata("script_setup", "templates_dictionary", Dictionary());
 		Dictionary last_global_templates;
 		Dictionary last_global_templates;
 		if (EditorSettings::get_singleton()->has_meta("script_setup/templates_dictionary")) {
 		if (EditorSettings::get_singleton()->has_meta("script_setup/templates_dictionary")) {