Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Matena <lukasmatena@seznam.cz>2019-12-12 15:19:16 +0300
committerLukas Matena <lukasmatena@seznam.cz>2019-12-12 15:19:16 +0300
commit9805b02a25f3d24120ba8331cf14e00afe998708 (patch)
treef2bf42e338574d6c3bba5605d8cc064cb23ed747 /src/slic3r/GUI/MeshUtils.hpp
parent537260494df5736b5a36677b86cf04c364fbf831 (diff)
Removed an obsolete variable from MeshRaycaster
Diffstat (limited to 'src/slic3r/GUI/MeshUtils.hpp')
-rw-r--r--src/slic3r/GUI/MeshUtils.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/slic3r/GUI/MeshUtils.hpp b/src/slic3r/GUI/MeshUtils.hpp
index 56d726596..b4ad03011 100644
--- a/src/slic3r/GUI/MeshUtils.hpp
+++ b/src/slic3r/GUI/MeshUtils.hpp
@@ -105,10 +105,10 @@ private:
// whether certain points are visible or obscured by the mesh etc.
class MeshRaycaster {
public:
- // The class saves a const* to the mesh, calledz is responsible
- // for making sure it does not get invalid.
+ // The class makes a copy of the mesh as EigenMesh3D.
+ // The pointer can be invalidated after constructor returns.
MeshRaycaster(const TriangleMesh& mesh)
- : m_emesh(mesh), m_mesh(&mesh)
+ : m_emesh(mesh)
{}
// Given a mouse position, this returns true in case it is on the mesh.
@@ -138,7 +138,6 @@ public:
private:
sla::EigenMesh3D m_emesh;
- const TriangleMesh* m_mesh = nullptr;
};