Selaa lähdekoodia

fix ObjectFollower followVisibility for objects outside cam frustum

trethaller 4 vuotta sitten
vanhempi
commit
e2a202e28b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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;