Explorar o código

fixed polygon save()

Nicolas Cannasse %!s(int64=6) %!d(string=hai) anos
pai
achega
cb38f29777
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;