Browse Source

Fix various typos with codespell

Using 2.2.7.dev5+g2af65969.
Rémi Verschelde 2 years ago
parent
commit
373c4b22d3

+ 1 - 1
editor/editor_file_system.cpp

@@ -968,7 +968,7 @@ void EditorFileSystem::_scan_fs_changes(EditorFileSystemDirectory *p_dir, const
 		p_dir->modified_time = current_mtime;
 		//ooooops, dir changed, see what's going on
 
-		//first mark everything as veryfied
+		//first mark everything as verified
 
 		for (int i = 0; i < p_dir->files.size(); i++) {
 			p_dir->files[i]->verified = false;

+ 1 - 1
editor/plugins/gradient_editor_plugin.cpp

@@ -531,7 +531,7 @@ void GradientEdit::_redraw() {
 			draw_texture(get_theme_icon(SNAME("overbright_indicator"), SNAME("ColorPicker")), Point2(button_offset, 0));
 		}
 	} else {
-		// If no color is selected, draw grey color with 'X' on top.
+		// If no color is selected, draw gray color with 'X' on top.
 		draw_rect(Rect2(button_offset, 0, h, h), Color(0.5, 0.5, 0.5, 1));
 		draw_line(Vector2(button_offset, 0), Vector2(button_offset + h, h), Color(0.8, 0.8, 0.8));
 		draw_line(Vector2(button_offset, h), Vector2(button_offset + h, 0), Color(0.8, 0.8, 0.8));

+ 1 - 1
editor/plugins/node_3d_editor_plugin.cpp

@@ -7071,7 +7071,7 @@ void Node3DEditor::_init_grid() {
 	if (primary_grid_steps != 10) { // Log10 of 10 is 1.
 		// Change of base rule, divide by ln(10).
 		real_t div = Math::log((real_t)primary_grid_steps) / (real_t)2.302585092994045901094;
-		// Trucation (towards zero) is intentional.
+		// Truncation (towards zero) is intentional.
 		division_level_max = (int)(division_level_max / div);
 		division_level_min = (int)(division_level_min / div);
 	}

+ 4 - 4
modules/openxr/doc_classes/OpenXRInterface.xml

@@ -95,14 +95,14 @@
 		<method name="is_foveation_supported" qualifiers="const">
 			<return type="bool" />
 			<description>
-				Returns [code]true[/code] if OpenXRs foveation extension is supported, the interface must be initialised before this returns a valid value.
+				Returns [code]true[/code] if OpenXR's foveation extension is supported, the interface must be initialized before this returns a valid value.
 				[b]Note:[/b] This feature is only available on the compatibility renderer and currently only available on some stand alone headsets. For Vulkan set [member Viewport.vrs_mode] to [code]VRS_XR[/code] on desktop.
 			</description>
 		</method>
 		<method name="is_hand_tracking_supported">
 			<return type="bool" />
 			<description>
-				Returns [code]true[/code] if OpenXRs hand tracking is supported and enabled.
+				Returns [code]true[/code] if OpenXR's hand tracking is supported and enabled.
 				[b]Note:[/b] This only returns a valid value after OpenXR has been initialized.
 			</description>
 		</method>
@@ -128,10 +128,10 @@
 			The display refresh rate for the current HMD. Only functional if this feature is supported by the OpenXR runtime and after the interface has been initialized.
 		</member>
 		<member name="foveation_dynamic" type="bool" setter="set_foveation_dynamic" getter="get_foveation_dynamic" default="false">
-			Enable dynamic foveation adjustment, the interface must be initialised before this is accessible. If enabled foveation will automatically adjusted between low and [member foveation_level].
+			Enable dynamic foveation adjustment, the interface must be initialized before this is accessible. If enabled foveation will automatically adjusted between low and [member foveation_level].
 		</member>
 		<member name="foveation_level" type="int" setter="set_foveation_level" getter="get_foveation_level" default="0">
-			Set foveation level from 0 (off) to 3 (high), the interface must be initialised before this is accessible.
+			Set foveation level from 0 (off) to 3 (high), the interface must be initialized before this is accessible.
 		</member>
 		<member name="render_target_size_multiplier" type="float" setter="set_render_target_size_multiplier" getter="get_render_target_size_multiplier" default="1.0">
 			The render size multiplier for the current HMD. Must be set before the interface has been initialized.

+ 2 - 2
modules/openxr/extensions/openxr_fb_foveation_extension.cpp

@@ -112,7 +112,7 @@ XrFoveationLevelFB OpenXRFBFoveationExtension::get_foveation_level() const {
 void OpenXRFBFoveationExtension::set_foveation_level(XrFoveationLevelFB p_foveation_level) {
 	foveation_level = p_foveation_level;
 
-	// Update profile will do nothing if we're not yet initialised
+	// Update profile will do nothing if we're not yet initialized.
 	update_profile();
 }
 
@@ -123,7 +123,7 @@ XrFoveationDynamicFB OpenXRFBFoveationExtension::get_foveation_dynamic() const {
 void OpenXRFBFoveationExtension::set_foveation_dynamic(XrFoveationDynamicFB p_foveation_dynamic) {
 	foveation_dynamic = p_foveation_dynamic;
 
-	// Update profile will do nothing if we're not yet initialised
+	// Update profile will do nothing if we're not yet initialized.
 	update_profile();
 }
 

+ 1 - 1
scene/animation/animation_mixer.cpp

@@ -1079,7 +1079,7 @@ void AnimationMixer::_blend_process(double p_delta, bool p_update_only) {
 			ERR_CONTINUE(blend_idx < 0 || blend_idx >= track_count);
 			real_t blend = blend_idx < track_weights.size() ? track_weights[blend_idx] * weight : weight;
 			if (!deterministic) {
-				// If undeterministic, do nomalization.
+				// If undeterministic, do normalization.
 				// It would be better to make this if statement outside the for loop, but come here since too much code...
 				if (Math::is_zero_approx(track->total_weight)) {
 					continue;