You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Fix typos with codespell
Using codespell 2.0.0.
Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
GIRD
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
(cherry picked from commit eb78f80f03)
This commit is contained in:
@@ -125,7 +125,7 @@ MeshGeometry::MeshGeometry(uint64_t id, const ElementPtr element, const std::str
|
||||
|
||||
ScopePtr sc = element->Compound();
|
||||
ERR_FAIL_COND_MSG(sc == nullptr, "failed to read geometry, prevented crash");
|
||||
ERR_FAIL_COND_MSG(!HasElement(sc, "Vertices"), "Detected mesh with no vertexes, didn't populate the mesh");
|
||||
ERR_FAIL_COND_MSG(!HasElement(sc, "Vertices"), "Detected mesh with no vertices, didn't populate the mesh");
|
||||
|
||||
// must have Mesh elements:
|
||||
const ElementPtr Vertices = GetRequiredElement(sc, "Vertices", element);
|
||||
@@ -140,7 +140,7 @@ MeshGeometry::MeshGeometry(uint64_t id, const ElementPtr element, const std::str
|
||||
ParseVectorDataArray(m_vertices, Vertices);
|
||||
ParseVectorDataArray(m_face_indices, PolygonVertexIndex);
|
||||
|
||||
ERR_FAIL_COND_MSG(m_vertices.empty(), "mesh with no vertexes in FBX file, did you mean to delete it?");
|
||||
ERR_FAIL_COND_MSG(m_vertices.empty(), "mesh with no vertices in FBX file, did you mean to delete it?");
|
||||
ERR_FAIL_COND_MSG(m_face_indices.empty(), "mesh has no faces, was this intended?");
|
||||
|
||||
// Retrieve layer elements, for all of the mesh
|
||||
@@ -278,7 +278,7 @@ MeshGeometry::MeshGeometry(uint64_t id, const ElementPtr element, const std::str
|
||||
}
|
||||
}
|
||||
// As the algorithm above, this check is useless. Because the first
|
||||
// ever vertex is always considered the begining of a polygon.
|
||||
// ever vertex is always considered the beginning of a polygon.
|
||||
ERR_FAIL_COND_MSG(found_it == false, "Was not possible to find the first vertex of this polygon. FBX file is corrupted.");
|
||||
|
||||
} else {
|
||||
@@ -419,7 +419,7 @@ MeshGeometry::MappingData<T> MeshGeometry::resolve_vertex_data_array(
|
||||
// parse data into array
|
||||
ParseVectorDataArray(tempData.data, GetRequiredElement(source, dataElementName));
|
||||
|
||||
// index array wont always exist
|
||||
// index array won't always exist
|
||||
const ElementPtr element = GetOptionalElement(source, indexDataElementName);
|
||||
if (element) {
|
||||
ParseVectorDataArray(tempData.index, element);
|
||||
|
||||
Reference in New Issue
Block a user