瀏覽代碼

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();
 				obj.args = shape.getParameters();
 			case Custom:
 			case Custom:
 				obj.kind = 2;
 				obj.kind = 2;
-				obj.points = points;
+				obj.points = [for( p in points ) { x : p.x, y : p.y }];
 		}
 		}
 		#if editor
 		#if editor
 		obj.debugColor = debugColor;
 		obj.debugColor = debugColor;