diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-25 02:29:20 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-25 02:29:20 +0100 |
commit | 870166e536aadef018cee2d93eba6b818607767c (patch) | |
tree | 94087cdf725d149406ac36838f3ef58bc18985d6 /assetFactory | |
parent | Remove duplicate Tree-01-1 definition (diff) | |
download | ilt-870166e536aadef018cee2d93eba6b818607767c.tar.bz2 ilt-870166e536aadef018cee2d93eba6b818607767c.tar.xz ilt-870166e536aadef018cee2d93eba6b818607767c.zip |
Allow setting a flag to say (vertex) normals have been provided
Diffstat (limited to 'assetFactory')
-rw-r--r-- | assetFactory/modelFactoryMesh.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/assetFactory/modelFactoryMesh.h b/assetFactory/modelFactoryMesh.h index 4eac7ee..012977a 100644 --- a/assetFactory/modelFactoryMesh.h +++ b/assetFactory/modelFactoryMesh.h @@ -47,6 +47,7 @@ struct ModelFactoryTraits : public OpenMesh::DefaultTraits { struct ModelFactoryMesh : public OpenMesh::PolyMesh_ArrayKernelT<ModelFactoryTraits> { ModelFactoryMesh(); + bool normalsProvidedProperty {}; OpenMesh::FPropHandleT<bool> smoothFaceProperty; OpenMesh::FPropHandleT<GLuint> materialFaceProperty; OpenMesh::FPropHandleT<std::string> nameFaceProperty; |