浏览代码

fix bug when calculating bounds from removed sprite

bstouls 9 年之前
父节点
当前提交
8ca47c1a92
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      h2d/Sprite.hx

+ 1 - 0
h2d/Sprite.hx

@@ -268,6 +268,7 @@ class Sprite {
 		if( childs.remove(s) ) {
 			if( s.allocated ) s.onDelete();
 			s.parent = null;
+			s.posChanged = true;
 		}
 	}