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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-10-17 20:10:04 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-10-17 20:10:04 +0400
commit0c2a1500f293a1ae103afece42595f97598d8055 (patch)
tree929f3bedcf667f6be9848b2a1d61bd107fd527f6 /intern/decimation
parentf83ae34e037aabef4508b517c49223963ab3c844 (diff)
minor changes
- stub from last commit was incorrect (copied old docs) - decimator was making copy of quadric for no reason. - correct typo
Diffstat (limited to 'intern/decimation')
-rw-r--r--intern/decimation/intern/LOD_Quadric.h2
-rw-r--r--intern/decimation/intern/LOD_QuadricEditor.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/intern/decimation/intern/LOD_Quadric.h b/intern/decimation/intern/LOD_Quadric.h
index 9dde0502aa3..fc69530ac43 100644
--- a/intern/decimation/intern/LOD_Quadric.h
+++ b/intern/decimation/intern/LOD_Quadric.h
@@ -45,7 +45,7 @@ private:
MT_Scalar c2, cd;
MT_Scalar d2;
- void init(MT_Scalar a, MT_Scalar b, MT_Scalar c, MT_Scalar d);
+ //void init(MT_Scalar a, MT_Scalar b, MT_Scalar c, MT_Scalar d);
public:
diff --git a/intern/decimation/intern/LOD_QuadricEditor.cpp b/intern/decimation/intern/LOD_QuadricEditor.cpp
index fbaf0c1180f..9c895ee25f1 100644
--- a/intern/decimation/intern/LOD_QuadricEditor.cpp
+++ b/intern/decimation/intern/LOD_QuadricEditor.cpp
@@ -179,7 +179,7 @@ BuildQuadrics(
MT_Vector3 target = TargetVertex(*edge_it);
LOD_Edge &e = *edge_it;
- LOD_Quadric q0 = quadrics[e.m_verts[0]];
+ const LOD_Quadric &q0 = quadrics[e.m_verts[0]];
const LOD_Quadric &q1 = quadrics[e.m_verts[1]];
e.HeapKey() = -float(q0.Evaluate(target) + q1.Evaluate(target));