Browse Source

fix ObjectFollower followVisibility for objects outside cam frustum

trethaller 4 years ago
parent
commit
e2a202e28b
1 changed files with 1 additions and 1 deletions
  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;