浏览代码

fixed change ignoreParentTransform should set posChanged

Nicolas Cannasse 4 年之前
父节点
当前提交
59cde49114
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/scene/Object.hx

+ 1 - 1
h3d/scene/Object.hx

@@ -210,7 +210,7 @@ class Object implements hxd.impl.Serializable {
 	inline function set_inheritCulled(b) return flags.set(FInheritCulled, b);
 	inline function set_ignoreCollide(b) return flags.set(FIgnoreCollide, b);
 	inline function set_allowSerialize(b) return !flags.set(FNoSerialize, !b);
-	inline function set_ignoreParentTransform(b) return flags.set(FIgnoreParentTransform, b);
+	inline function set_ignoreParentTransform(b) { if( b != ignoreParentTransform ) posChanged = true; return flags.set(FIgnoreParentTransform, b); }
 	inline function set_cullingColliderInherited(b) return flags.set(FCullingColliderInherited, b);
 
 	/**