@@ -121,6 +121,7 @@ abstract Polygon(Array<Point>) from Array<Point> to Array<Point> {
this.reverse();
}
+ @:noDebug
public function contains( p : Point, isConvex = false ) {
if( isConvex ) {
var p1 = points[points.length - 1];
@@ -159,6 +159,7 @@ class Skin extends MultiMaterial {
splitPalette = null;
override function sync( ctx : RenderContext ) {
if( culled && !alwaysSync )
return;
@@ -45,6 +45,13 @@ class PropInspector extends cdb.jq.Client {
connect();
+ public function dispose() {
+ if( sock != null ) {
+ sock.close();
+ sock = null;
+ }
+
override function onKey(e:cdb.jq.Event) {
switch( e.keyCode ) {
case 'Z'.code if( e.ctrlKey ):
@@ -208,6 +208,15 @@ class SceneInspector {
addTool("Statistics", "bar-chart", getStats, "Open statistics");
+ inspect.dispose();
+ scene = null;
+ if( oldLoop != null ) {
+ hxd.System.setLoop(oldLoop);
+ oldLoop = null;
inline function get_connected() {
return inspect.connected;