Explorar o código

fix ObjectFollower followVisibility for objects outside cam frustum

trethaller %!s(int64=4) %!d(string=hai) anos
pai
achega
e2a202e28b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;