소스 검색

fixed polygon save()

Nicolas Cannasse 6 년 전
부모
커밋
cb38f29777
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hrt/prefab/l3d/Polygon.hx

+ 1 - 1
hrt/prefab/l3d/Polygon.hx

@@ -28,7 +28,7 @@ class Polygon extends Object3D {
 				obj.args = shape.getParameters();
 			case Custom:
 				obj.kind = 2;
-				obj.points = points;
+				obj.points = [for( p in points ) { x : p.x, y : p.y }];
 		}
 		#if editor
 		obj.debugColor = debugColor;