Skip to content

Commit

Permalink
[gltf] Add nolints for pointer arithmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmNotHanni committed May 23, 2021
1 parent 746425f commit a1791fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vulkan-renderer/gltf2/gltf2_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,18 @@ void Model::load_node(const tinygltf::Node &start_node, ModelNode *parent, std::
ModelVertex new_vertex{};

// TODO: Remove pointer arithmetic or add NOLINT
new_vertex.pos = glm::vec4(glm::make_vec3(&position_buffer[vertex_number * 3]), 1.0f);
new_vertex.pos = glm::vec4(glm::make_vec3(&position_buffer[vertex_number * 3]), 1.0f); // NOLINT

if (normals_buffer != nullptr) {
// TODO: Remove pointer arithmetic or add NOLINT
new_vertex.normal = glm::normalize(glm::make_vec3(&normals_buffer[vertex_number * 3]));
new_vertex.normal = glm::normalize(glm::make_vec3(&normals_buffer[vertex_number * 3])); // NOLINT
} else {
new_vertex.normal = glm::normalize(glm::vec3(0.0f));
}

if (texture_coordinate_buffer != nullptr) {
// TODO: Remove pointer arithmetic or add NOLINT
new_vertex.uv = glm::make_vec2(&texture_coordinate_buffer[vertex_number * 2]);
new_vertex.uv = glm::make_vec2(&texture_coordinate_buffer[vertex_number * 2]); // NOLINT
} else {
new_vertex.uv = glm::vec3(0.0f);
}
Expand Down

0 comments on commit a1791fe

Please sign in to comment.