浏览代码

fix bug when calculating bounds from removed object

bstouls 9 年之前
父节点
当前提交
7e354a6e51
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      h3d/scene/Object.hx

+ 1 - 0
h3d/scene/Object.hx

@@ -297,6 +297,7 @@ class Object {
 		if( childs.remove(o) ) {
 			if( o.allocated ) o.onDelete();
 			o.parent = null;
+			o.posChanged = true;
 		}
 	}