Explorar el Código

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

ncannasse hace 6 años
padre
commit
36bc426361
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);
 	}