瀏覽代碼

hide huds if object hidden

Nicolas Cannasse 4 年之前
父節點
當前提交
2d7f7a9156
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      hrt/prefab/Object3D.hx

+ 1 - 0
hrt/prefab/Object3D.hx

@@ -208,6 +208,7 @@ class Object3D extends Prefab {
 						if( obj == null || obj.follow != ctx.local3d ) {
 							ctx.local2d = obj = new h2d.ObjectFollower(ctx.local3d, ctx.local2d);
 							obj.horizontalAlign = Middle;
+							obj.followVisibility = true;
 						}
 						if( t.file != null ) {
 							var t : cdb.Types.TilePos = t;