Cleanup: compiler warnings: unused args, missing include, parenthesis
This commit is contained in:
parent
7c511f1b47
commit
56ede578e7
|
@ -24,6 +24,7 @@
|
|||
#include "fast_float.h"
|
||||
|
||||
#include "stl_import.hh"
|
||||
#include "stl_import_ascii_reader.hh"
|
||||
#include "stl_import_mesh.hh"
|
||||
|
||||
namespace blender::io::stl {
|
||||
|
|
|
@ -41,7 +41,7 @@ Mesh *read_stl_binary(FILE *file, Main *bmain, char *mesh_name, bool use_custom_
|
|||
Array<STLBinaryTriangle> tris_buf(chunk_size);
|
||||
STLMeshHelper stl_mesh(num_tris, use_custom_normals);
|
||||
size_t num_read_tris;
|
||||
while (num_read_tris = fread(tris_buf.data(), sizeof(STLBinaryTriangle), chunk_size, file)) {
|
||||
while ((num_read_tris = fread(tris_buf.data(), sizeof(STLBinaryTriangle), chunk_size, file))) {
|
||||
for (size_t i = 0; i < num_read_tris; i++) {
|
||||
if (use_custom_normals) {
|
||||
stl_mesh.add_triangle(tris_buf[i].v1, tris_buf[i].v2, tris_buf[i].v3, tris_buf[i].normal);
|
||||
|
|
|
@ -16,8 +16,8 @@ class VectorFieldInput final : public GeometryFieldInput {
|
|||
}
|
||||
|
||||
GVArray get_varray_for_context(const GeometryComponent &component,
|
||||
const eAttrDomain domain,
|
||||
IndexMask mask) const final
|
||||
const eAttrDomain UNUSED(domain),
|
||||
IndexMask UNUSED(mask)) const final
|
||||
{
|
||||
if (component.type() != GEO_COMPONENT_TYPE_INSTANCES) {
|
||||
return {};
|
||||
|
|
|
@ -16,8 +16,8 @@ class VectorFieldInput final : public GeometryFieldInput {
|
|||
}
|
||||
|
||||
GVArray get_varray_for_context(const GeometryComponent &component,
|
||||
const eAttrDomain domain,
|
||||
IndexMask mask) const final
|
||||
const eAttrDomain UNUSED(domain),
|
||||
IndexMask UNUSED(mask)) const final
|
||||
{
|
||||
if (component.type() != GEO_COMPONENT_TYPE_INSTANCES) {
|
||||
return {};
|
||||
|
|
Loading…
Reference in New Issue