소스 검색

fix ObjectFollower followVisibility for objects outside cam frustum

trethaller 4 년 전
부모
커밋
e2a202e28b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      h2d/ObjectFollower.hx

+ 1 - 1
h2d/ObjectFollower.hx

@@ -131,7 +131,7 @@ class ObjectFollower extends Object {
 
 	override function drawRec(ctx:RenderContext) {
 
-		if( !visible || zValue < 0 )
+		if( !visible || zValue < 0 || zValue > 1 )
 			return;
 		if( followVisibility ) {
 			var parent = follow;