Pārlūkot izejas kodu

bugfix: duplicate normal data (prevent transform to be applied twice)

ncannasse 6 gadi atpakaļ
vecāks
revīzija
36bc426361
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      h3d/prim/Cylinder.hx

+ 2 - 2
h3d/prim/Cylinder.hx

@@ -26,8 +26,8 @@ class Cylinder extends Quads {
 			var n1 = new Point(Math.cos(a2), Math.sin(a2), 0);
 			normals.push(n0);
 			normals.push(n1);
-			normals.push(n0);
-			normals.push(n1);
+			normals.push(n0.clone());
+			normals.push(n1.clone());
 		}
 		super(pts,normals);
 	}