diff options
Diffstat (limited to 'assetFactory/use.cpp')
-rw-r--r-- | assetFactory/use.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/assetFactory/use.cpp b/assetFactory/use.cpp index 0994c8c..d5ea39d 100644 --- a/assetFactory/use.cpp +++ b/assetFactory/use.cpp @@ -7,7 +7,7 @@ #include <stream_support.h> Shape::CreatedFaces -Use::createMesh(ModelFactoryMesh & mesh, float levelOfDetailFactor) const +Use::createMesh(ModelFactoryMesh & mesh, Scale3D levelOfDetailFactor) const { auto apply = [&mesh](const auto & faces, const Mutation::Matrix & m) { std::set<ModelFactoryMesh::VertexHandle> vs; @@ -22,7 +22,7 @@ Use::createMesh(ModelFactoryMesh & mesh, float levelOfDetailFactor) const } }; - auto faces = type->createMesh(mesh, levelOfDetailFactor * relativeLevelOfDetail()); + auto faces = type->createMesh(mesh, levelOfDetailFactor * scale); applyStyle(mesh, {this}, faces); apply(faces, getDeformationMatrix()); for (const auto & [name, faceController] : faceControllers) { |