소스 검색

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

ncannasse 6 년 전
부모
커밋
36bc426361
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);
 	}