summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-06-07 10:17:32 +0200
committerRémi Verschelde <rverschelde@gmail.com>2021-06-07 11:03:08 +0200
commitc1c76850cb47c0f8451fce6353958006e95b2cda (patch)
treeb01f1e0e1252defc5979660aa29a5c7fe641ddbd /scene
parentafbabd12f3a5b83c6a9ddc4e8e43be4041b290bf (diff)
Style: Cleanup uses of double spaces between words
Or after punctuation. Tried to leave third-party stuff alone, unless it has been heavily modified for Godot.
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/grid_container.cpp2
-rw-r--r--scene/resources/material.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/grid_container.cpp b/scene/gui/grid_container.cpp
index 541925a802..a54f5eef06 100644
--- a/scene/gui/grid_container.cpp
+++ b/scene/gui/grid_container.cpp
@@ -33,7 +33,7 @@
void GridContainer::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_SORT_CHILDREN: {
- Map<int, int> col_minw; // Max of min_width of all controls in each col (indexed by col).
+ Map<int, int> col_minw; // Max of min_width of all controls in each col (indexed by col).
Map<int, int> row_minh; // Max of min_height of all controls in each row (indexed by row).
Set<int> col_expanded; // Columns which have the SIZE_EXPAND flag set.
Set<int> row_expanded; // Rows which have the SIZE_EXPAND flag set.
diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp
index 100fccc783..c2f33accee 100644
--- a/scene/resources/material.cpp
+++ b/scene/resources/material.cpp
@@ -891,7 +891,7 @@ void BaseMaterial3D::_update_shader() {
code += "\t\tfloat current_layer_depth = 0.0;\n";
code += "\t\tvec2 P = view_dir.xy * heightmap_scale;\n";
code += "\t\tvec2 delta = P / num_layers;\n";
- code += "\t\tvec2 ofs = base_uv;\n";
+ code += "\t\tvec2 ofs = base_uv;\n";
if (flags[FLAG_INVERT_HEIGHTMAP]) {
code += "\t\tfloat depth = texture(texture_heightmap, ofs).r;\n";
} else {