Browse Source

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

ncannasse 6 năm trước cách đây
mục cha
commit
36bc426361
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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);
 	}