Mesh: Fix linter warnings

This commit is contained in:
wmayer
2024-11-20 23:02:40 +01:00
committed by wwmayer
parent 4e82a0af48
commit 7a2bfb7370
86 changed files with 1734 additions and 1882 deletions

View File

@@ -50,7 +50,7 @@ void MeshTexture::apply(const Mesh::MeshObject& mesh,
const App::Color& defaultColor,
MeshCore::Material& material)
{
apply(mesh, true, defaultColor, -1.0f, material);
apply(mesh, true, defaultColor, -1.0F, material);
}
void MeshTexture::apply(const Mesh::MeshObject& mesh,
@@ -64,7 +64,7 @@ void MeshTexture::apply(const Mesh::MeshObject& mesh,
void MeshTexture::apply(const Mesh::MeshObject& mesh, MeshCore::Material& material)
{
App::Color defaultColor;
apply(mesh, false, defaultColor, -1.0f, material);
apply(mesh, false, defaultColor, -1.0F, material);
}
void MeshTexture::apply(const Mesh::MeshObject& mesh, float max_dist, MeshCore::Material& material)
@@ -85,7 +85,7 @@ void MeshTexture::apply(const Mesh::MeshObject& mesh,
material.diffuseColor.clear();
material.binding = MeshCore::MeshIO::OVERALL;
if (kdTree.get()) {
if (kdTree) {
// the points of the current mesh
std::vector<App::Color> diffuseColor;
const MeshCore::MeshPointArray& points = mesh.getKernel().GetPoints();