浏览代码

fixed removeChildren() with debug=true

ncannasse 6 年之前
父节点
当前提交
8626fd255d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h2d/Flow.hx

+ 1 - 1
h2d/Flow.hx

@@ -412,7 +412,7 @@ class Flow extends Object {
 		var k = 0;
 		while( numChildren>k ) {
 			var c = getChildAt(k);
-			if( c == background || c == interactive ) k++; else removeChild(c);
+			if( c == background || c == interactive || c == debugGraphics ) k++; else removeChild(c);
 		}
 	}