|
@@ -201,6 +201,9 @@ class PolygonEditor {
|
|
|
}
|
|
|
|
|
|
function refreshPolygon(){
|
|
|
+ if(!polygonPrefab.points.isClockwise())
|
|
|
+ polygonPrefab.points.reverse(); // Ensure poly is always clockwise
|
|
|
+
|
|
|
var polyPrim = polygonPrefab.generateCustomPolygon();
|
|
|
var mesh : h3d.scene.Mesh = cast getContext().local3d;
|
|
|
mesh.primitive = polyPrim;
|