diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-06-01 14:02:42 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-06-01 14:02:42 +0100 |
commit | 519ebadf219ef3b6b75dd84842ef5b56589c4c3b (patch) | |
tree | 591fa2783d4d579325662da42dcdbb7fb9f55d74 /assetFactory/use.cpp | |
parent | Fix setting of pedantic warnings (diff) | |
download | ilt-519ebadf219ef3b6b75dd84842ef5b56589c4c3b.tar.bz2 ilt-519ebadf219ef3b6b75dd84842ef5b56589c4c3b.tar.xz ilt-519ebadf219ef3b6b75dd84842ef5b56589c4c3b.zip |
Remove conflicting glm::vec operators
% and %= already exist and abusing them for simplifying perspective
multiplication was always a bad idea. Here they just become named
functions.
Diffstat (limited to 'assetFactory/use.cpp')
-rw-r--r-- | assetFactory/use.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assetFactory/use.cpp b/assetFactory/use.cpp index d5ea39d..42bc703 100644 --- a/assetFactory/use.cpp +++ b/assetFactory/use.cpp @@ -15,7 +15,7 @@ Use::createMesh(ModelFactoryMesh & mesh, Scale3D levelOfDetailFactor) const const auto fvr = mesh.fv_range(f.second); for (const auto & v : fvr) { if (!vs.contains(v)) { - mesh.point(v) %= m; + perspectiveApply(mesh.point(v), m); vs.insert(v); } } |