From 5c2285eabe7766ceb18b7c8155ac18d2f0c87772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 24 Jul 2013 11:26:46 +0000 Subject: [PATCH] Wrong variable type git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@875 fdac6126-5c0c-442c-9429-916003d36597 --- src/OpenMesh/Core/Mesh/PolyMeshT.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenMesh/Core/Mesh/PolyMeshT.cc b/src/OpenMesh/Core/Mesh/PolyMeshT.cc index 55b054dd..aef6c5ec 100644 --- a/src/OpenMesh/Core/Mesh/PolyMeshT.cc +++ b/src/OpenMesh/Core/Mesh/PolyMeshT.cc @@ -320,7 +320,7 @@ calc_vertex_normal(VertexHandle _vh) const calc_vertex_normal_fast(_vh,n); Scalar norm = n.length(); - if (norm != 0.0) n *= (1.0/norm); + if (norm != 0.0) n *= (Scalar(1.0)/norm); return n; }